Package org.apache.http.impl.client
Class DefaultRequestDirector
- java.lang.Object
 - 
- org.apache.http.impl.client.DefaultRequestDirector
 
 
- 
- All Implemented Interfaces:
 RequestDirector
@Deprecated public class DefaultRequestDirector extends java.lang.Object implements RequestDirector
Deprecated.Do not use.Default implementation ofRequestDirector.The following parameters can be used to customize the behavior of this class:
CoreProtocolPNames.PROTOCOL_VERSIONCoreProtocolPNames.STRICT_TRANSFER_ENCODINGCoreProtocolPNames.HTTP_ELEMENT_CHARSETCoreProtocolPNames.USE_EXPECT_CONTINUECoreProtocolPNames.WAIT_FOR_CONTINUECoreProtocolPNames.USER_AGENTCoreConnectionPNames.SOCKET_BUFFER_SIZECoreConnectionPNames.MAX_LINE_LENGTHCoreConnectionPNames.MAX_HEADER_COUNTCoreConnectionPNames.SO_TIMEOUTCoreConnectionPNames.SO_LINGERCoreConnectionPNames.SO_REUSEADDRCoreConnectionPNames.TCP_NODELAYCoreConnectionPNames.CONNECTION_TIMEOUTCoreConnectionPNames.STALE_CONNECTION_CHECKConnRoutePNames.FORCED_ROUTEConnRoutePNames.LOCAL_ADDRESSConnRoutePNames.DEFAULT_PROXYCookieSpecPNames.DATE_PATTERNSCookieSpecPNames.SINGLE_COOKIE_HEADERAuthPNames.CREDENTIAL_CHARSETClientPNames.COOKIE_POLICYClientPNames.HANDLE_AUTHENTICATIONClientPNames.HANDLE_REDIRECTSClientPNames.MAX_REDIRECTSClientPNames.ALLOW_CIRCULAR_REDIRECTSClientPNames.VIRTUAL_HOSTClientPNames.DEFAULT_HOSTClientPNames.DEFAULT_HEADERSClientPNames.CONN_MANAGER_TIMEOUT
- Since:
 - 4.0
 
 
- 
- 
Constructor Summary
 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HttpResponseexecute(HttpHost targetHost, HttpRequest request, HttpContext context)Deprecated.Executes a request. 
 - 
 
- 
- 
Constructor Detail
- 
DefaultRequestDirector
public DefaultRequestDirector(HttpRequestExecutor requestExec, ClientConnectionManager conman, ConnectionReuseStrategy reustrat, ConnectionKeepAliveStrategy kastrat, HttpRoutePlanner rouplan, HttpProcessor httpProcessor, HttpRequestRetryHandler retryHandler, RedirectHandler redirectHandler, AuthenticationHandler targetAuthHandler, AuthenticationHandler proxyAuthHandler, UserTokenHandler userTokenHandler, HttpParams params)
Deprecated. 
- 
DefaultRequestDirector
public DefaultRequestDirector(Log log, HttpRequestExecutor requestExec, ClientConnectionManager conman, ConnectionReuseStrategy reustrat, ConnectionKeepAliveStrategy kastrat, HttpRoutePlanner rouplan, HttpProcessor httpProcessor, HttpRequestRetryHandler retryHandler, RedirectStrategy redirectStrategy, AuthenticationHandler targetAuthHandler, AuthenticationHandler proxyAuthHandler, UserTokenHandler userTokenHandler, HttpParams params)
Deprecated. 
- 
DefaultRequestDirector
public DefaultRequestDirector(Log log, HttpRequestExecutor requestExec, ClientConnectionManager conman, ConnectionReuseStrategy reustrat, ConnectionKeepAliveStrategy kastrat, HttpRoutePlanner rouplan, HttpProcessor httpProcessor, HttpRequestRetryHandler retryHandler, RedirectStrategy redirectStrategy, AuthenticationStrategy targetAuthStrategy, AuthenticationStrategy proxyAuthStrategy, UserTokenHandler userTokenHandler, HttpParams params)
Deprecated.- Since:
 - 4.2
 
 
 - 
 
- 
Method Detail
- 
execute
public HttpResponse execute(HttpHost targetHost, HttpRequest request, HttpContext context) throws HttpException, java.io.IOException
Deprecated.Description copied from interface:RequestDirectorExecutes a request.Note: For the time being, a new director is instantiated for each request. This is the same behavior as for
HttpMethodDirectorin HttpClient 3.- Specified by:
 executein interfaceRequestDirector- Parameters:
 targetHost- the target host for the request. Implementations may acceptnullif they can still determine a route, for example to a default target or by inspecting the request.request- the request to executecontext- the context for executing the request- Returns:
 - the final response to the request. This is never an intermediate response with status code 1xx.
 - Throws:
 HttpException- in case of a problemjava.io.IOException- in case of an IO problem or if the connection was aborted
 
 - 
 
 -