public class AuthenticatedHTTPClient extends Object
| Constructor and Description |
|---|
AuthenticatedHTTPClient(AuthenticationFacade authenticationFacade,
org.apache.http.client.HttpClient httpClient,
com.google.gson.Gson gson) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
delete(String userId,
String url,
Map<String,String> params,
Type responseType) |
<T> T |
get(String userId,
String url,
Map<String,String> params,
Type responseType) |
<T> T |
post(String userId,
String url,
Object payload,
Map<String,String> params,
Type responseType) |
<T> T |
postMultipartAnonymous(String url,
org.apache.http.HttpEntity form,
Type responseType) |
<T> T |
put(String userId,
String url,
Object payload,
Map<String,String> params,
Type responseType) |
public AuthenticatedHTTPClient(AuthenticationFacade authenticationFacade, org.apache.http.client.HttpClient httpClient, com.google.gson.Gson gson)
public <T> T get(String userId, String url, @Nullable Map<String,String> params, Type responseType) throws IOException, UnauthorizedException, URISyntaxException
@Nullable public <T> T post(String userId, String url, Object payload, Map<String,String> params, Type responseType) throws IOException, UnauthorizedException, URISyntaxException
public <T> T put(String userId, String url, Object payload, @Nullable Map<String,String> params, Type responseType) throws IOException, UnauthorizedException, URISyntaxException
@Nullable public <T> T delete(String userId, String url, @Nullable Map<String,String> params, @Nullable Type responseType) throws IOException, UnauthorizedException, URISyntaxException
public <T> T postMultipartAnonymous(String url, org.apache.http.HttpEntity form, Type responseType) throws IOException
IOExceptionCopyright © 2016 wix.com. All rights reserved.