org.apache.commons.httpclient
Class HttpMethodDirector

java.lang.Object
  extended byorg.apache.commons.httpclient.HttpMethodDirector

class HttpMethodDirector
extends java.lang.Object

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

Since:
3.0

Field Summary
static java.lang.String PROXY_AUTH_CHALLENGE
          The proxy authenticate challange header.
static java.lang.String PROXY_AUTH_RESP
          The proxy authenticate response header.
static java.lang.String WWW_AUTH_CHALLENGE
          The www authenticate challange header.
static java.lang.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 java.lang.String WWW_AUTH_CHALLENGE
The www authenticate challange header.

See Also:
Constant Field Values

WWW_AUTH_RESP

public static final java.lang.String WWW_AUTH_RESP
The www authenticate response header.

See Also:
Constant Field Values

PROXY_AUTH_CHALLENGE

public static final java.lang.String PROXY_AUTH_CHALLENGE
The proxy authenticate challange header.

See Also:
Constant Field Values

PROXY_AUTH_RESP

public static final java.lang.String PROXY_AUTH_RESP
The proxy authenticate response header.

See Also:
Constant Field Values
Constructor Detail

HttpMethodDirector

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

executeMethod

public void executeMethod(HttpMethod method)
                   throws java.io.IOException,
                          HttpException
Executes the method associated with this method director.

Throws:
java.io.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.