public class HTTPHelper extends Object implements ContextHelper
Modifier and Type | Field and Description |
---|---|
protected static com.fasterxml.jackson.databind.ObjectMapper |
mapper |
Constructor and Description |
---|
HTTPHelper() |
Modifier and Type | Method and Description |
---|---|
Blob |
call(String username,
String password,
String requestType,
String path) |
Blob |
call(String username,
String password,
String requestType,
String path,
Map<String,String> headers) |
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,
javax.ws.rs.core.MultivaluedMap<String,String> queryParams) |
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 |
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) |
protected static volatile com.fasterxml.jackson.databind.ObjectMapper mapper
public HTTPHelper()
public Blob call(String username, String password, String requestType, String path) throws IOException
IOException
public Blob call(String username, String password, String requestType, String path, Map<String,String> headers) throws IOException
IOException
public Blob call(String username, String password, String requestType, String path, com.sun.jersey.multipart.MultiPart mp) throws IOException
IOException
public Blob call(String username, String password, String requestType, String path, com.sun.jersey.multipart.MultiPart mp, Map<String,String> headers) throws IOException
IOException
public Blob call(String username, String password, String requestType, String path, javax.ws.rs.core.MultivaluedMap<String,String> queryParams) throws IOException
IOException
public Blob call(String username, String password, String requestType, String path, Object data) throws IOException
IOException
public Blob call(String username, String password, String requestType, String path, Object data, Map<String,String> headers) throws IOException
IOException
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
IOException
public Blob get(String url, Map<String,Object> options) throws IOException
IOException
public Blob post(String url, Object data, Map<String,Object> options) throws IOException
IOException
public Blob post(String url, com.sun.jersey.multipart.MultiPart multiPart, Map<String,Object> options) throws IOException
IOException
public Blob put(String url, Object data, Map<String,Object> options) throws IOException
IOException
public Blob put(String url, com.sun.jersey.multipart.MultiPart multiPart, Map<String,Object> options) throws IOException
IOException
public Blob delete(String url, Object data, Map<String,Object> options) throws IOException
IOException
Copyright © 2019 Nuxeo. All rights reserved.