|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.http.impl.client.AbstractHttpClient
org.apache.http.impl.client.DefaultHttpClient
com.netflix.http4.NFHttpClient
public class NFHttpClient
Netflix extension of Apache 4.0 HttpClient Just so we can wrap around some features.
| Field Summary | |
|---|---|
protected static java.lang.String |
EXECUTE_TRACER
|
| Constructor Summary | |
|---|---|
protected |
NFHttpClient()
|
protected |
NFHttpClient(java.lang.String name)
|
protected |
NFHttpClient(java.lang.String name,
com.netflix.client.config.IClientConfig config)
|
protected |
NFHttpClient(java.lang.String host,
int port)
|
| Method Summary | ||
|---|---|---|
|
execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.client.ResponseHandler<? extends T> responseHandler)
|
|
|
execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.client.ResponseHandler<? extends T> responseHandler,
org.apache.http.protocol.HttpContext context)
|
|
|
execute(org.apache.http.client.methods.HttpUriRequest request,
org.apache.http.client.ResponseHandler<? extends T> responseHandler)
|
|
|
execute(org.apache.http.client.methods.HttpUriRequest request,
org.apache.http.client.ResponseHandler<? extends T> responseHandler,
org.apache.http.protocol.HttpContext context)
|
|
int |
getConnectionsInPool()
|
|
com.netflix.config.DynamicIntProperty |
getConnIdleEvictTimeMilliSeconds()
|
|
ConnectionPoolCleaner |
getConnPoolCleaner()
|
|
int |
getMaxConnectionsPerHost()
|
|
int |
getMaxTotalConnnections()
|
|
int |
getNumRetries()
|
|
int |
getSleepTimeFactorMs()
|
|
void |
initConnectionCleanerTask()
|
|
void |
setConnIdleEvictTimeMilliSeconds(com.netflix.config.DynamicIntProperty connIdleEvictTimeMilliSeconds)
|
|
| Methods inherited from class org.apache.http.impl.client.DefaultHttpClient |
|---|
createHttpParams, createHttpProcessor, setDefaultHttpParams |
| Methods inherited from class org.apache.http.impl.client.AbstractHttpClient |
|---|
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, execute, execute, execute, execute, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String EXECUTE_TRACER
| Constructor Detail |
|---|
protected NFHttpClient(java.lang.String host,
int port)
protected NFHttpClient()
protected NFHttpClient(java.lang.String name)
protected NFHttpClient(java.lang.String name,
com.netflix.client.config.IClientConfig config)
| Method Detail |
|---|
public void initConnectionCleanerTask()
@Monitor(name="connPoolCleaner",
type=INFORMATIONAL)
public ConnectionPoolCleaner getConnPoolCleaner()
@Monitor(name="connIdleEvictTimeMilliSeconds",
type=INFORMATIONAL)
public com.netflix.config.DynamicIntProperty getConnIdleEvictTimeMilliSeconds()
@Monitor(name="connectionsInPool",
type=GAUGE)
public int getConnectionsInPool()
@Monitor(name="maxTotalConnections",
type=INFORMATIONAL)
public int getMaxTotalConnnections()
@Monitor(name="maxConnectionsPerHost",
type=INFORMATIONAL)
public int getMaxConnectionsPerHost()
@Monitor(name="numRetries",
type=INFORMATIONAL)
public int getNumRetries()
public void setConnIdleEvictTimeMilliSeconds(com.netflix.config.DynamicIntProperty connIdleEvictTimeMilliSeconds)
@Monitor(name="sleepTimeFactorMs",
type=INFORMATIONAL)
public int getSleepTimeFactorMs()
public <T> T execute(org.apache.http.client.methods.HttpUriRequest request,
org.apache.http.client.ResponseHandler<? extends T> responseHandler)
throws java.io.IOException,
org.apache.http.client.ClientProtocolException
execute in interface org.apache.http.client.HttpClientexecute in class org.apache.http.impl.client.AbstractHttpClientjava.io.IOException
org.apache.http.client.ClientProtocolException
public <T> T execute(org.apache.http.client.methods.HttpUriRequest request,
org.apache.http.client.ResponseHandler<? extends T> responseHandler,
org.apache.http.protocol.HttpContext context)
throws java.io.IOException,
org.apache.http.client.ClientProtocolException
execute in interface org.apache.http.client.HttpClientexecute in class org.apache.http.impl.client.AbstractHttpClientjava.io.IOException
org.apache.http.client.ClientProtocolException
public <T> T execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.client.ResponseHandler<? extends T> responseHandler)
throws java.io.IOException,
org.apache.http.client.ClientProtocolException
execute in interface org.apache.http.client.HttpClientexecute in class org.apache.http.impl.client.AbstractHttpClientjava.io.IOException
org.apache.http.client.ClientProtocolException
public <T> T execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.client.ResponseHandler<? extends T> responseHandler,
org.apache.http.protocol.HttpContext context)
throws java.io.IOException,
org.apache.http.client.ClientProtocolException
execute in interface org.apache.http.client.HttpClientexecute in class org.apache.http.impl.client.AbstractHttpClientjava.io.IOException
org.apache.http.client.ClientProtocolException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||