Uses of Class
org.apache.commons.httpclient.HttpState

Packages that use HttpState
org.apache.commons.httpclient Classes and interfaces supporting the client side of the HTTP protocol. 
org.apache.commons.httpclient.auth Provides implementation of various authentication schemes as well as utility classes that can be used to authenticate HTTP requests. 
org.apache.commons.httpclient.methods Classes implementing HttpMethod for the base HTTP methods. 
 

Uses of HttpState in org.apache.commons.httpclient
 

Methods in org.apache.commons.httpclient that return HttpState
 HttpState HttpClient.getState()
          Returns HTTP state associated with the HttpClient.
 

Methods in org.apache.commons.httpclient with parameters of type HttpState
 int HttpMethod.execute(HttpState state, HttpConnection connection)
          Executes this method using the specified HttpConnection and HttpState.
 int HttpMethodBase.execute(HttpState state, HttpConnection conn)
          Execute this HTTP method.
protected  void HttpMethodBase.addAuthorizationRequestHeader(HttpState state, HttpConnection conn)
          Generates Authorization request header if needed, as long as no Authorization request header already exists.
protected  void HttpMethodBase.addContentLengthRequestHeader(HttpState state, HttpConnection conn)
          Generates Content-Length or Transfer-Encoding: Chunked request header, as long as no Content-Length request header already exists.
protected  void HttpMethodBase.addCookieRequestHeader(HttpState state, HttpConnection conn)
          Generates Cookie request headers for those cookies that match the given host, port and path.
protected  void HttpMethodBase.addHostRequestHeader(HttpState state, HttpConnection conn)
          Generates Host request header, as long as no Host request header already exists.
protected  void HttpMethodBase.addProxyAuthorizationRequestHeader(HttpState state, HttpConnection conn)
          Generates Proxy-Authorization request header if needed, as long as no Proxy-Authorization request header already exists.
protected  void HttpMethodBase.addProxyConnectionHeader(HttpState state, HttpConnection conn)
          Generates Proxy-Connection: Keep-Alive request header when communicating via a proxy server.
protected  void HttpMethodBase.addRequestHeaders(HttpState state, HttpConnection conn)
          Generates all the required request headers to be submitted via the given connection.
protected  void HttpMethodBase.addUserAgentRequestHeader(HttpState state, HttpConnection conn)
          Generates default User-Agent request header, as long as no User-Agent request header already exists.
protected  void HttpMethodBase.processResponseBody(HttpState state, HttpConnection conn)
          This method is invoked immediately after HttpMethodBase.readResponseBody(HttpState,HttpConnection) and can be overridden by sub-classes in order to provide custom body processing.
protected  void HttpMethodBase.processResponseHeaders(HttpState state, HttpConnection conn)
          This method is invoked immediately after HttpMethodBase.readResponseHeaders(HttpState,HttpConnection) and can be overridden by sub-classes in order to provide custom response headers processing.
protected  void HttpMethodBase.processStatusLine(HttpState state, HttpConnection conn)
          This method is invoked immediately after HttpMethodBase.readStatusLine(HttpState,HttpConnection) and can be overridden by sub-classes in order to provide custom response status line processing.
protected  void HttpMethodBase.readResponse(HttpState state, HttpConnection conn)
          Reads the response from the given connection.
protected  void HttpMethodBase.readResponseBody(HttpState state, HttpConnection conn)
          Read the response body from the given HttpConnection.
protected  void HttpMethodBase.readResponseHeaders(HttpState state, HttpConnection conn)
          Reads the response headers from the given connection.
protected  void HttpMethodBase.readStatusLine(HttpState state, HttpConnection conn)
          Read the status line from the given HttpConnection, setting my status code and status text.
protected  void HttpMethodBase.writeRequest(HttpState state, HttpConnection conn)
           Sends the request via the given connection.
protected  boolean HttpMethodBase.writeRequestBody(HttpState state, HttpConnection conn)
          Writes the request body to the given connection.
protected  void HttpMethodBase.writeRequestHeaders(HttpState state, HttpConnection conn)
          Writes the request headers to the given connection.
protected  void HttpMethodBase.writeRequestLine(HttpState state, HttpConnection conn)
          Writes the request line to the given connection.
protected  void ConnectMethod.addAuthorizationRequestHeader(HttpState state, HttpConnection conn)
          This method does nothing.
protected  void ConnectMethod.addContentLengthRequestHeader(HttpState state, HttpConnection conn)
          This method does nothing.
protected  void ConnectMethod.addCookieRequestHeader(HttpState state, HttpConnection conn)
          This method does nothing.
protected  void ConnectMethod.addRequestHeaders(HttpState state, HttpConnection conn)
          Populates the request headers map to with additional headers to be submitted to the given HttpConnection.
 int ConnectMethod.execute(HttpState state, HttpConnection conn)
          Execute this method by tunnelling and then executing the wrapped method.
protected  void ConnectMethod.writeRequestLine(HttpState state, HttpConnection conn)
          Special Connect request.
 void HttpClient.setState(HttpState state)
          Assigns HTTP state for the HttpClient.
 int HttpClient.executeMethod(HostConfiguration hostConfiguration, HttpMethod method, HttpState state)
          Executes the given HTTP method using the given custom host configuration with the given custom HTTP state.
static boolean Authenticator.authenticate(HttpMethod method, HttpState state)
          Deprecated. use HttpAuthenticator.authenticate(AuthScheme, HttpMethod, HttpConnection, HttpState)
static boolean Authenticator.authenticateProxy(HttpMethod method, HttpState state)
          Deprecated. use HttpAuthenticator.authenticateProxy(AuthScheme, HttpMethod, HttpConnection, HttpState)
 

Uses of HttpState in org.apache.commons.httpclient.auth
 

Methods in org.apache.commons.httpclient.auth with parameters of type HttpState
static boolean HttpAuthenticator.authenticateDefault(HttpMethod method, HttpConnection conn, HttpState state)
          Attempt to provide default authentication credentials to the given method in the given context using basic authentication scheme.
static boolean HttpAuthenticator.authenticateProxyDefault(HttpMethod method, HttpConnection conn, HttpState state)
          Attempt to provide default proxy authentication credentials to the given method in the given context using basic authentication scheme.
static boolean HttpAuthenticator.authenticate(AuthScheme authscheme, HttpMethod method, HttpConnection conn, HttpState state)
          Attempt to provide requisite authentication credentials to the given method in the given context using the given authentication scheme.
static boolean HttpAuthenticator.authenticateProxy(AuthScheme authscheme, HttpMethod method, HttpConnection conn, HttpState state)
          Attempt to provide requisite proxy authentication credentials to the given method in the given context using the given authentication scheme.
 

Uses of HttpState in org.apache.commons.httpclient.methods
 

Methods in org.apache.commons.httpclient.methods with parameters of type HttpState
protected  void GetMethod.readResponseBody(HttpState state, HttpConnection conn)
          Overrides method in HttpMethodBase to write data to the appropriate buffer.
protected  void ExpectContinueMethod.addRequestHeaders(HttpState state, HttpConnection conn)
          Sets the Expect header if it has not already been set, in addition to the "standard" set of headers.
protected  void EntityEnclosingMethod.addContentLengthRequestHeader(HttpState state, HttpConnection conn)
          Generates Content-Length or Transfer-Encoding: Chunked request header, as long as no Content-Length request header already exists.
protected  boolean EntityEnclosingMethod.writeRequestBody(HttpState state, HttpConnection conn)
          Writes the request body to the given connection.
protected  void MultipartPostMethod.addRequestHeaders(HttpState state, HttpConnection conn)
          Adds Content Type: multipart/form-data header in addition to the "standard" set of headers
protected  boolean MultipartPostMethod.writeRequestBody(HttpState state, HttpConnection conn)
          Writes the request body to the given connection.
protected  void HeadMethod.readResponseBody(HttpState state, HttpConnection conn)
          Overrides HttpMethodBase method to not read a response body, despite the presence of a Content-Length or Transfer-Encoding header.
protected  void OptionsMethod.processResponseHeaders(HttpState state, HttpConnection conn)
           This implementation will parse the Allow header to obtain the set of methods supported by the resource identified by the Request-URI.
protected  void PostMethod.addRequestHeaders(HttpState state, HttpConnection conn)
          Adds Content Type: application/x-www-form-urlencoded header in addition to the "standard" set of headers, if no Content Type header has been set by the user
 



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