public class OAuthHttpClient
extends org.apache.http.impl.client.DefaultHttpClient
Constructor and Description |
---|
OAuthHttpClient(OAuthHttpClientPool pool,
String webServiceUrl,
String consumerKey,
String consumerSecret) |
Modifier and Type | Method and Description |
---|---|
String |
appendOAuthToUrl(String method,
String url) |
void |
close() |
void |
deleteUrl(String url) |
static org.apache.http.HttpHost |
determineTarget(org.apache.http.client.methods.HttpUriRequest request) |
Map<String,Object> |
getJsonResource(org.apache.http.HttpResponse response) |
Map<String,Object> |
getJsonResource(org.apache.http.client.methods.HttpUriRequest request) |
Map<String,Object> |
getJsonResource(String url) |
com.revolsys.io.map.MapReader |
getMapReader(String url) |
com.revolsys.io.map.MapReader |
getMapReader(String fileName,
String url) |
String |
getOAuthUrl(String method,
String path) |
org.apache.http.HttpResponse |
getResource(String url) |
String |
getUrl(String path) |
protected IOException |
newException(org.apache.http.HttpEntity entity,
org.apache.http.StatusLine statusLine) |
Map<String,Object> |
postJsonResource(String url) |
Map<String,Object> |
postJsonResource(String url,
Map<String,? extends Object> message) |
int |
postResource(HttpMultipartPost post) |
org.apache.http.HttpResponse |
postResource(String url) |
org.apache.http.HttpResponse |
postResource(String url,
String contentType,
File file) |
String |
postResourceRedirect(HttpMultipartPost request) |
String |
postResourceRedirect(String url) |
createHttpParams, createHttpProcessor, setDefaultHttpParams
addRequestInterceptor, addRequestInterceptor, addResponseInterceptor, addResponseInterceptor, clearRequestInterceptors, clearResponseInterceptors, createAuthSchemeRegistry, createClientConnectionManager, createClientRequestDirector, createClientRequestDirector, createClientRequestDirector, createConnectionKeepAliveStrategy, createConnectionReuseStrategy, createCookieSpecRegistry, createCookieStore, createCredentialsProvider, createHttpContext, createHttpRequestRetryHandler, createHttpRoutePlanner, createProxyAuthenticationHandler, createProxyAuthenticationStrategy, createRedirectHandler, createRequestExecutor, createTargetAuthenticationHandler, createTargetAuthenticationStrategy, createUserTokenHandler, determineParams, doExecute, getAuthSchemes, getBackoffManager, getConnectionBackoffStrategy, getConnectionKeepAliveStrategy, getConnectionManager, getConnectionReuseStrategy, getCookieSpecs, getCookieStore, getCredentialsProvider, getHttpProcessor, getHttpRequestRetryHandler, getParams, getProxyAuthenticationHandler, getProxyAuthenticationStrategy, getRedirectHandler, getRedirectStrategy, getRequestExecutor, getRequestInterceptor, getRequestInterceptorCount, getResponseInterceptor, getResponseInterceptorCount, getRoutePlanner, getTargetAuthenticationHandler, getTargetAuthenticationStrategy, getUserTokenHandler, removeRequestInterceptorByClass, removeResponseInterceptorByClass, setAuthSchemes, setBackoffManager, setConnectionBackoffStrategy, setCookieSpecs, setCookieStore, setCredentialsProvider, setHttpRequestRetryHandler, setKeepAliveStrategy, setParams, setProxyAuthenticationHandler, setProxyAuthenticationStrategy, setRedirectHandler, setRedirectStrategy, setReuseStrategy, setRoutePlanner, setTargetAuthenticationHandler, setTargetAuthenticationStrategy, setUserTokenHandler
public OAuthHttpClient(OAuthHttpClientPool pool, String webServiceUrl, String consumerKey, String consumerSecret)
public static org.apache.http.HttpHost determineTarget(org.apache.http.client.methods.HttpUriRequest request) throws org.apache.http.client.ClientProtocolException
org.apache.http.client.ClientProtocolException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.http.impl.client.AbstractHttpClient
public void deleteUrl(String url) throws IOException, org.apache.http.client.ClientProtocolException
IOException
org.apache.http.client.ClientProtocolException
public Map<String,Object> getJsonResource(org.apache.http.client.methods.HttpUriRequest request) throws IOException, org.apache.http.client.ClientProtocolException
IOException
org.apache.http.client.ClientProtocolException
public com.revolsys.io.map.MapReader getMapReader(String url)
public org.apache.http.HttpResponse getResource(String url)
protected IOException newException(org.apache.http.HttpEntity entity, org.apache.http.StatusLine statusLine)
public Map<String,Object> postJsonResource(String url) throws org.apache.http.client.ClientProtocolException, IOException
org.apache.http.client.ClientProtocolException
IOException
public Map<String,Object> postJsonResource(String url, Map<String,? extends Object> message) throws org.apache.http.client.ClientProtocolException, IOException
org.apache.http.client.ClientProtocolException
IOException
public int postResource(HttpMultipartPost post) throws IOException
IOException
public org.apache.http.HttpResponse postResource(String url) throws IOException, org.apache.http.client.ClientProtocolException
IOException
org.apache.http.client.ClientProtocolException
public org.apache.http.HttpResponse postResource(String url, String contentType, File file) throws IOException, org.apache.http.client.ClientProtocolException
IOException
org.apache.http.client.ClientProtocolException
public String postResourceRedirect(HttpMultipartPost request)
Copyright © 2008–2017 Province of British Columbia. All rights reserved.