org.apache.droids.protocol.http
Class DroidsHttpClient

java.lang.Object
  extended by org.apache.http.impl.client.AbstractHttpClient
      extended by org.apache.droids.protocol.http.DroidsHttpClient
All Implemented Interfaces:
org.apache.http.client.HttpClient

public class DroidsHttpClient
extends org.apache.http.impl.client.AbstractHttpClient

HttpClient implementation optimized specifically for web crawling. This HTTP agent has no support for HTTP state management and authentication and is expected to be used for retrieving information from publicly accessible sites using stateless, idempotent HTTP methods.


Constructor Summary
DroidsHttpClient()
           
DroidsHttpClient(org.apache.http.params.HttpParams params)
           
 
Method Summary
protected  org.apache.http.auth.AuthSchemeRegistry createAuthSchemeRegistry()
           
protected  org.apache.http.conn.ClientConnectionManager createClientConnectionManager()
           
protected  org.apache.http.conn.ConnectionKeepAliveStrategy createConnectionKeepAliveStrategy()
           
protected  org.apache.http.ConnectionReuseStrategy createConnectionReuseStrategy()
           
protected  org.apache.http.cookie.CookieSpecRegistry createCookieSpecRegistry()
           
protected  org.apache.http.client.CookieStore createCookieStore()
           
protected  org.apache.http.client.CredentialsProvider createCredentialsProvider()
           
protected  org.apache.http.protocol.HttpContext createHttpContext()
           
protected  org.apache.http.params.HttpParams createHttpParams()
           
protected  org.apache.http.protocol.BasicHttpProcessor createHttpProcessor()
           
protected  org.apache.http.client.HttpRequestRetryHandler createHttpRequestRetryHandler()
           
protected  org.apache.http.conn.routing.HttpRoutePlanner createHttpRoutePlanner()
           
protected  org.apache.http.client.AuthenticationHandler createProxyAuthenticationHandler()
           
protected  org.apache.http.client.RedirectHandler createRedirectHandler()
           
protected  org.apache.http.protocol.HttpRequestExecutor createRequestExecutor()
           
protected  org.apache.http.client.AuthenticationHandler createTargetAuthenticationHandler()
           
protected  org.apache.http.client.UserTokenHandler createUserTokenHandler()
           
 
Methods inherited from class org.apache.http.impl.client.AbstractHttpClient
addRequestInterceptor, addRequestInterceptor, addResponseInterceptor, addResponseInterceptor, clearRequestInterceptors, clearResponseInterceptors, createClientRequestDirector, determineParams, execute, execute, execute, execute, execute, execute, execute, execute, getAuthSchemes, getConnectionKeepAliveStrategy, getConnectionManager, getConnectionReuseStrategy, getCookieSpecs, getCookieStore, getCredentialsProvider, getHttpProcessor, getHttpRequestRetryHandler, getParams, getProxyAuthenticationHandler, getRedirectHandler, getRequestExecutor, getRequestInterceptor, getRequestInterceptorCount, getResponseInterceptor, getResponseInterceptorCount, getRoutePlanner, getTargetAuthenticationHandler, getUserTokenHandler, removeRequestInterceptorByClass, removeResponseInterceptorByClass, setAuthSchemes, setCookieSpecs, setCookieStore, setCredentialsProvider, setHttpRequestRetryHandler, setKeepAliveStrategy, setParams, setProxyAuthenticationHandler, setRedirectHandler, setReuseStrategy, setRoutePlanner, setTargetAuthenticationHandler, setUserTokenHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DroidsHttpClient

public DroidsHttpClient()

DroidsHttpClient

public DroidsHttpClient(org.apache.http.params.HttpParams params)
Method Detail

createHttpParams

protected org.apache.http.params.HttpParams createHttpParams()
Specified by:
createHttpParams in class org.apache.http.impl.client.AbstractHttpClient

createHttpProcessor

protected org.apache.http.protocol.BasicHttpProcessor createHttpProcessor()
Specified by:
createHttpProcessor in class org.apache.http.impl.client.AbstractHttpClient

createClientConnectionManager

protected org.apache.http.conn.ClientConnectionManager createClientConnectionManager()
Specified by:
createClientConnectionManager in class org.apache.http.impl.client.AbstractHttpClient

createConnectionKeepAliveStrategy

protected org.apache.http.conn.ConnectionKeepAliveStrategy createConnectionKeepAliveStrategy()
Specified by:
createConnectionKeepAliveStrategy in class org.apache.http.impl.client.AbstractHttpClient

createConnectionReuseStrategy

protected org.apache.http.ConnectionReuseStrategy createConnectionReuseStrategy()
Specified by:
createConnectionReuseStrategy in class org.apache.http.impl.client.AbstractHttpClient

createAuthSchemeRegistry

protected org.apache.http.auth.AuthSchemeRegistry createAuthSchemeRegistry()
Specified by:
createAuthSchemeRegistry in class org.apache.http.impl.client.AbstractHttpClient

createCookieSpecRegistry

protected org.apache.http.cookie.CookieSpecRegistry createCookieSpecRegistry()
Specified by:
createCookieSpecRegistry in class org.apache.http.impl.client.AbstractHttpClient

createCookieStore

protected org.apache.http.client.CookieStore createCookieStore()
Specified by:
createCookieStore in class org.apache.http.impl.client.AbstractHttpClient

createCredentialsProvider

protected org.apache.http.client.CredentialsProvider createCredentialsProvider()
Specified by:
createCredentialsProvider in class org.apache.http.impl.client.AbstractHttpClient

createHttpContext

protected org.apache.http.protocol.HttpContext createHttpContext()
Specified by:
createHttpContext in class org.apache.http.impl.client.AbstractHttpClient

createHttpRequestRetryHandler

protected org.apache.http.client.HttpRequestRetryHandler createHttpRequestRetryHandler()
Specified by:
createHttpRequestRetryHandler in class org.apache.http.impl.client.AbstractHttpClient

createHttpRoutePlanner

protected org.apache.http.conn.routing.HttpRoutePlanner createHttpRoutePlanner()
Specified by:
createHttpRoutePlanner in class org.apache.http.impl.client.AbstractHttpClient

createProxyAuthenticationHandler

protected org.apache.http.client.AuthenticationHandler createProxyAuthenticationHandler()
Specified by:
createProxyAuthenticationHandler in class org.apache.http.impl.client.AbstractHttpClient

createTargetAuthenticationHandler

protected org.apache.http.client.AuthenticationHandler createTargetAuthenticationHandler()
Specified by:
createTargetAuthenticationHandler in class org.apache.http.impl.client.AbstractHttpClient

createRedirectHandler

protected org.apache.http.client.RedirectHandler createRedirectHandler()
Specified by:
createRedirectHandler in class org.apache.http.impl.client.AbstractHttpClient

createRequestExecutor

protected org.apache.http.protocol.HttpRequestExecutor createRequestExecutor()
Specified by:
createRequestExecutor in class org.apache.http.impl.client.AbstractHttpClient

createUserTokenHandler

protected org.apache.http.client.UserTokenHandler createUserTokenHandler()
Specified by:
createUserTokenHandler in class org.apache.http.impl.client.AbstractHttpClient


Copyright © 2007-2009. All Rights Reserved.