Class HTTPHelper
java.lang.Object
org.nuxeo.ecm.automation.features.HTTPHelper
- All Implemented Interfaces:
ContextHelper
- Since:
- 7.3
-
Field Summary
Modifier and TypeFieldDescriptionprotected static com.fasterxml.jackson.databind.ObjectMapper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncall
(String username, String password, String requestType, String path, com.sun.jersey.multipart.MultiPart mp) call
(String username, String password, String requestType, String path, com.sun.jersey.multipart.MultiPart mp, Map<String, String> headers) call
(String username, String password, String requestType, String path, Object data, Map<String, String> headers) call
(String username, String password, String requestType, String url, Object data, javax.ws.rs.core.MultivaluedMap<String, String> queryParams, com.sun.jersey.multipart.MultiPart mp, Map<String, String> headers) call
(String username, String password, String requestType, String path, javax.ws.rs.core.MultivaluedMap<String, String> queryParams)
-
Field Details
-
mapper
protected static volatile com.fasterxml.jackson.databind.ObjectMapper mapper
-
-
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, com.sun.jersey.multipart.MultiPart mp) throws IOException - Throws:
IOException
-
call
public Blob call(String username, String password, String requestType, String path, com.sun.jersey.multipart.MultiPart mp, Map<String, String> headers) throws IOException- Throws:
IOException
-
call
public Blob call(String username, String password, String requestType, String path, javax.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, javax.ws.rs.core.MultivaluedMap<String, String> queryParams, com.sun.jersey.multipart.MultiPart mp, Map<String, throws IOExceptionString> headers) - Throws:
IOException
-
get
- Throws:
IOException
- Since:
- 8.4
-
post
- Throws:
IOException
- Since:
- 8.4
-
post
public Blob post(String url, com.sun.jersey.multipart.MultiPart multiPart, Map<String, Object> options) throws IOException- Throws:
IOException
- Since:
- 8.4
-
put
- Throws:
IOException
- Since:
- 8.4
-
put
public Blob put(String url, com.sun.jersey.multipart.MultiPart multiPart, Map<String, Object> options) throws IOException- Throws:
IOException
- Since:
- 8.4
-
delete
- Throws:
IOException
- Since:
- 8.4
-