org.apache.commons.httpclient
Class HttpMethodDirector

java.lang.Object
  |
  +--org.apache.commons.httpclient.HttpMethodDirector

class HttpMethodDirector
extends Object

Handles the process of executing a method including authentication, redirection and retries.

Since:
3.0

Field Summary
static String PROXY_AUTH_CHALLENGE
          The proxy authenticate challange header.
static String PROXY_AUTH_RESP
          The proxy authenticate response header.
static String WWW_AUTH_CHALLENGE
          The www authenticate challange header.
static String WWW_AUTH_RESP
          The www authenticate response header.
 
Constructor Summary
HttpMethodDirector(HttpConnectionManager connectionManager, HostConfiguration hostConfiguration, HttpClientParams params, HttpState state)
           
 
Method Summary
 void executeMethod(HttpMethod method)
          Executes the method associated with this method director.
 HttpConnectionManager getConnectionManager()
           
 HostConfiguration getHostConfiguration()
           
 HttpParams getParams()
           
 HttpState getState()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WWW_AUTH_CHALLENGE

public static final String WWW_AUTH_CHALLENGE
The www authenticate challange header.

WWW_AUTH_RESP

public static final String WWW_AUTH_RESP
The www authenticate response header.

PROXY_AUTH_CHALLENGE

public static final String PROXY_AUTH_CHALLENGE
The proxy authenticate challange header.

PROXY_AUTH_RESP

public static final String PROXY_AUTH_RESP
The proxy authenticate response header.
Constructor Detail

HttpMethodDirector

public HttpMethodDirector(HttpConnectionManager connectionManager,
                          HostConfiguration hostConfiguration,
                          HttpClientParams params,
                          HttpState state)
Method Detail

executeMethod

public void executeMethod(HttpMethod method)
                   throws IOException,
                          HttpException
Executes the method associated with this method director.
Throws:
IOException -  
HttpException -  

getHostConfiguration

public HostConfiguration getHostConfiguration()
Returns:
 

getState

public HttpState getState()
Returns:
 

getConnectionManager

public HttpConnectionManager getConnectionManager()
Returns:
 

getParams

public HttpParams getParams()
Returns:
 


Copyright © 2001-2004 Apache Software Foundation. All Rights Reserved.