Class HTTPHelper
java.lang.Object
org.nuxeo.ecm.automation.features.HTTPHelper
- All Implemented Interfaces:
ContextHelper
- Since:
- 7.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbasicAuthentication
(String username, String password) call
(String username, String password, String requestType, String path, jakarta.ws.rs.core.MultivaluedMap<String, String> queryParams) call
(String username, String password, String requestType, String url, Object data, jakarta.ws.rs.core.MultivaluedMap<String, String> queryParams, Map<String, String> headers) call
(String username, String password, String requestType, String path, Object data, Map<String, String> headers) protected org.apache.http.client.ResponseHandler
<Blob> getFirstHeaderValue
(org.apache.http.HttpMessage httpMessage, String headerName) getHeaderParameters
(Map<String, Object> options) getQueryParameters
(Map<String, Object> options) protected Blob
invoke
(String requestType, String url, Object data, jakarta.ws.rs.core.MultivaluedMap<String, String> queryParams, Map<String, String> headers) protected Blob
-
Constructor Details
-
HTTPHelper
public HTTPHelper()
-
-
Method Details
-
call
public Blob call(String username, String password, String requestType, String path) throws IOException - Throws:
IOException
-
call
public Blob call(String username, String password, String requestType, String path, Map<String, String> headers) throws IOException- Throws:
IOException
-
call
public Blob call(String username, String password, String requestType, String path, jakarta.ws.rs.core.MultivaluedMap<String, String> queryParams) throws IOException- Throws:
IOException
-
call
public Blob call(String username, String password, String requestType, String path, Object data) throws IOException - Throws:
IOException
-
call
public Blob call(String username, String password, String requestType, String path, Object data, Map<String, String> headers) throws IOException- Throws:
IOException
-
call
public Blob call(String username, String password, String requestType, String url, Object data, jakarta.ws.rs.core.MultivaluedMap<String, String> queryParams, Map<String, throws IOExceptionString> headers) - Throws:
IOException
-
get
- Throws:
IOException
- Since:
- 8.4
-
post
- Throws:
IOException
- Since:
- 8.4
-
put
- Throws:
IOException
- Since:
- 8.4
-
delete
- Throws:
IOException
- Since:
- 8.4
-
invoke
protected Blob invoke(String requestType, String url, Object data, Map<String, Object> options) throws IOException- Throws:
IOException
-
invoke
protected Blob invoke(String requestType, String url, Object data, jakarta.ws.rs.core.MultivaluedMap<String, String> queryParams, Map<String, throws IOExceptionString> headers) - Throws:
IOException
-
getHeaderParameters
-
basicAuthentication
-
getQueryParameters
-
convertResponseToBlobHandler
-
getFirstHeaderValue
-