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.ObjectMapper
mapper
-
Constructor Summary
Constructors Constructor Description HTTPHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Blob
call(String username, String password, String requestType, String path)
Blob
call(String username, String password, String requestType, String path, com.sun.jersey.multipart.MultiPart mp)
Blob
call(String username, String password, String requestType, String path, com.sun.jersey.multipart.MultiPart mp, Map<String,String> headers)
Blob
call(String username, String password, String requestType, String path, Object data)
Blob
call(String username, String password, String requestType, String path, Object data, Map<String,String> headers)
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)
Blob
call(String username, String password, String requestType, String path, Map<String,String> headers)
Blob
call(String username, String password, String requestType, String path, javax.ws.rs.core.MultivaluedMap<String,String> queryParams)
Blob
delete(String url, Object data, Map<String,Object> options)
Blob
get(String url, Map<String,Object> options)
Blob
post(String url, com.sun.jersey.multipart.MultiPart multiPart, Map<String,Object> options)
Blob
post(String url, Object data, Map<String,Object> options)
Blob
put(String url, com.sun.jersey.multipart.MultiPart multiPart, Map<String,Object> options)
Blob
put(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
-
-