Class HTTPHelper
- java.lang.Object
-
- org.nuxeo.ecm.automation.features.HTTPHelper
-
- All Implemented Interfaces:
ContextHelper
public class HTTPHelper extends Object implements ContextHelper
- Since:
- 7.3
-
-
Field Summary
Fields Modifier and Type Field Description protected static com.fasterxml.jackson.databind.ObjectMappermapper
-
Constructor Summary
Constructors Constructor Description HTTPHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Blobcall(String username, String password, String requestType, String path)Blobcall(String username, String password, String requestType, String path, com.sun.jersey.multipart.MultiPart mp)Blobcall(String username, String password, String requestType, String path, com.sun.jersey.multipart.MultiPart mp, Map<String,String> headers)Blobcall(String username, String password, String requestType, String path, Object data)Blobcall(String username, String password, String requestType, String path, Object data, Map<String,String> headers)Blobcall(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)Blobcall(String username, String password, String requestType, String path, Map<String,String> headers)Blobcall(String username, String password, String requestType, String path, javax.ws.rs.core.MultivaluedMap<String,String> queryParams)Blobdelete(String url, Object data, Map<String,Object> options)Blobget(String url, Map<String,Object> options)Blobpost(String url, com.sun.jersey.multipart.MultiPart multiPart, Map<String,Object> options)Blobpost(String url, Object data, Map<String,Object> options)Blobput(String url, com.sun.jersey.multipart.MultiPart multiPart, Map<String,Object> options)Blobput(String url, Object data, Map<String,Object> options)
-
-
-
Method Detail
-
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,String> headers) throws IOException
- Throws:
IOException
-
get
public Blob get(String url, Map<String,Object> options) throws IOException
- Throws:
IOException- Since:
- 8.4
-
post
public Blob post(String url, Object data, Map<String,Object> options) throws IOException
- 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
public Blob put(String url, Object data, Map<String,Object> options) throws IOException
- 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
public Blob delete(String url, Object data, Map<String,Object> options) throws IOException
- Throws:
IOException- Since:
- 8.4
-
-