com.netflix.http4
Class NFHttpClient
java.lang.Object
org.apache.http.impl.client.AbstractHttpClient
org.apache.http.impl.client.DefaultHttpClient
com.netflix.http4.NFHttpClient
- All Implemented Interfaces:
- org.apache.http.client.HttpClient
public class NFHttpClient
- extends org.apache.http.impl.client.DefaultHttpClient
Netflix extension of Apache 4.0 HttpClient
Just so we can wrap around some features.
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, createConnectionKeepAliveStrategy, createConnectionReuseStrategy, createCookieSpecRegistry, createCookieStore, createCredentialsProvider, createHttpContext, createHttpRequestRetryHandler, createHttpRoutePlanner, createProxyAuthenticationHandler, createRedirectHandler, createRequestExecutor, createTargetAuthenticationHandler, createUserTokenHandler, determineParams, execute, execute, execute, execute, getAuthSchemes, getConnectionKeepAliveStrategy, getConnectionManager, getConnectionReuseStrategy, getCookieSpecs, getCookieStore, getCredentialsProvider, getHttpProcessor, getHttpRequestRetryHandler, getParams, getProxyAuthenticationHandler, getRedirectHandler, getRedirectStrategy, getRequestExecutor, getRequestInterceptor, getRequestInterceptorCount, getResponseInterceptor, getResponseInterceptorCount, getRoutePlanner, getTargetAuthenticationHandler, getUserTokenHandler, removeRequestInterceptorByClass, removeResponseInterceptorByClass, setAuthSchemes, setCookieSpecs, setCookieStore, setCredentialsProvider, setHttpRequestRetryHandler, setKeepAliveStrategy, setParams, setProxyAuthenticationHandler, setRedirectHandler, setRedirectStrategy, setReuseStrategy, setRoutePlanner, setTargetAuthenticationHandler, setUserTokenHandler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXECUTE_TRACER
protected static final java.lang.String EXECUTE_TRACER
- See Also:
- Constant Field Values
NFHttpClient
protected NFHttpClient(java.lang.String host,
int port)
NFHttpClient
protected NFHttpClient()
NFHttpClient
protected NFHttpClient(java.lang.String name)
initConnectionCleanerTask
public void initConnectionCleanerTask()
getConnPoolCleaner
@Monitor(name="connPoolCleaner",
type=INFORMATIONAL)
public ConnectionPoolCleaner getConnPoolCleaner()
getConnIdleEvictTimeMilliSeconds
@Monitor(name="connIdleEvictTimeMilliSeconds",
type=INFORMATIONAL)
public com.netflix.config.DynamicIntProperty getConnIdleEvictTimeMilliSeconds()
getConnectionsInPool
@Monitor(name="connectionsInPool",
type=GAUGE)
public int getConnectionsInPool()
getMaxTotalConnnections
@Monitor(name="maxTotalConnections",
type=INFORMATIONAL)
public int getMaxTotalConnnections()
getMaxConnectionsPerHost
@Monitor(name="maxConnectionsPerHost",
type=INFORMATIONAL)
public int getMaxConnectionsPerHost()
getNumRetries
@Monitor(name="numRetries",
type=INFORMATIONAL)
public int getNumRetries()
setConnIdleEvictTimeMilliSeconds
public void setConnIdleEvictTimeMilliSeconds(com.netflix.config.DynamicIntProperty connIdleEvictTimeMilliSeconds)
getSleepTimeFactorMs
@Monitor(name="sleepTimeFactorMs",
type=INFORMATIONAL)
public int getSleepTimeFactorMs()
execute
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
- Specified by:
execute
in interface org.apache.http.client.HttpClient
- Overrides:
execute
in class org.apache.http.impl.client.AbstractHttpClient
- Throws:
java.io.IOException
org.apache.http.client.ClientProtocolException
execute
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
- Specified by:
execute
in interface org.apache.http.client.HttpClient
- Overrides:
execute
in class org.apache.http.impl.client.AbstractHttpClient
- Throws:
java.io.IOException
org.apache.http.client.ClientProtocolException
execute
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
- Specified by:
execute
in interface org.apache.http.client.HttpClient
- Overrides:
execute
in class org.apache.http.impl.client.AbstractHttpClient
- Throws:
java.io.IOException
org.apache.http.client.ClientProtocolException
execute
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
- Specified by:
execute
in interface org.apache.http.client.HttpClient
- Overrides:
execute
in class org.apache.http.impl.client.AbstractHttpClient
- Throws:
java.io.IOException
org.apache.http.client.ClientProtocolException