org.apache.commons.httpclient
Class ConnectMethod
- HttpMethod
public class ConnectMethod
Establishes a tunneled HTTP connection via the CONNECT method.
Version:
- Ortwin Gl???ck
- dIon Gillard
- Mike Bowler
- Oleg Kalnichevski
- 2.0
static String | NAME - the name of this method
|
abort , addCookieRequestHeader , addHostRequestHeader , addProxyConnectionHeader , addRequestHeader , addRequestHeader , addRequestHeaders , addResponseFooter , addUserAgentRequestHeader , checkNotUsed , checkUsed , execute , generateRequestLine , getAuthenticationRealm , getContentCharSet , getDoAuthentication , getEffectiveVersion , getFollowRedirects , getHostAuthState , getHostConfiguration , getMethodRetryHandler , getName , getParams , getPath , getProxyAuthState , getProxyAuthenticationRealm , getQueryString , getRecoverableExceptionCount , getRequestCharSet , getRequestHeader , getRequestHeaderGroup , getRequestHeaders , getRequestHeaders , getResponseBody , getResponseBodyAsStream , getResponseBodyAsString , getResponseCharSet , getResponseContentLength , getResponseFooter , getResponseFooters , getResponseHeader , getResponseHeaderGroup , getResponseHeaders , getResponseHeaders , getResponseStream , getResponseTrailerHeaderGroup , getStatusCode , getStatusLine , getStatusText , getURI , hasBeenUsed , isAborted , isConnectionCloseForced , isHttp11 , isRequestSent , isStrictMode , processResponseBody , processResponseHeaders , processStatusLine , readResponse , readResponseBody , readResponseHeaders , readStatusLine , recycle , releaseConnection , removeRequestHeader , removeRequestHeader , responseBodyConsumed , setConnectionCloseForced , setDoAuthentication , setFollowRedirects , setHostConfiguration , setHttp11 , setMethodRetryHandler , setParams , setPath , setQueryString , setQueryString , setRequestHeader , setRequestHeader , setResponseStream , setStrictMode , setURI , shouldCloseConnection , validate , writeRequest , writeRequestBody , writeRequestHeaders , writeRequestLine |
NAME
public static final String NAME
the name of this method
ConnectMethod
public ConnectMethod()
Create a connect method.
- 3.0
ConnectMethod
public ConnectMethod(HttpMethod method)
the wrapped method is no longer used
Create a connect method wrapping the existing method
method
- the method
to execute after connecting
to the server
addRequestHeaders
protected void addRequestHeaders(HttpState state,
HttpConnection conn)
throws IOException,
HttpException
Populates the request headers map to with additional
headers
to be submitted to the given
HttpConnection
.
This implementation adds
User-Agent,
Host,
and
Proxy-Authorization headers, when appropriate.
- addRequestHeaders in interface HttpMethodBase
state
- the client stateconn
- the HttpConnection
the headers will eventually be
written to
HttpException
- when a HTTP protocol error occurs
ConnectMethod
Copyright (c) 1999-2005 - Apache Software Foundation