public class ConnectMethod extends HttpMethodBase
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
the name of this method
|
| Constructor and Description |
|---|
ConnectMethod()
Deprecated.
use #ConnectMethod(HttpHost);
Create a connect method.
|
ConnectMethod(HostConfiguration targethost)
Create a connect method.
|
ConnectMethod(HttpMethod method)
Deprecated.
the wrapped method is no longer used
Create a connect method wrapping the existing method
|
| Modifier and Type | Method and Description |
|---|---|
int |
execute(HttpState state,
HttpConnection conn)
Execute this method and create a tunneled HttpConnection.
|
String |
getName()
Provide the
name of this method. |
String |
getPath()
Gets the path of this HTTP method.
|
URI |
getURI()
Returns the URI of the HTTP method
|
abort, addRequestHeader, addRequestHeader, addResponseFooter, getAuthenticationRealm, getDoAuthentication, getEffectiveVersion, getFollowRedirects, getHostAuthState, getHostConfiguration, getMethodRetryHandler, getParams, getProxyAuthenticationRealm, getProxyAuthState, getQueryString, getRecoverableExceptionCount, getRequestCharSet, getRequestHeader, getRequestHeaders, getRequestHeaders, getResponseBody, getResponseBody, getResponseBodyAsStream, getResponseBodyAsString, getResponseBodyAsString, getResponseCharSet, getResponseContentLength, getResponseFooter, getResponseFooters, getResponseHeader, getResponseHeaders, getResponseHeaders, getStatusCode, getStatusLine, getStatusText, hasBeenUsed, isAborted, isHttp11, isRequestSent, isStrictMode, recycle, releaseConnection, removeRequestHeader, removeRequestHeader, setDoAuthentication, setFollowRedirects, setHostConfiguration, setHttp11, setMethodRetryHandler, setParams, setPath, setQueryString, setQueryString, setRequestHeader, setRequestHeader, setStrictMode, setURI, validatepublic static final String NAME
public ConnectMethod()
public ConnectMethod(HttpMethod method)
method - the method to execute after connecting
to the serverpublic ConnectMethod(HostConfiguration targethost)
public String getName()
name of this method.getName in interface HttpMethodgetName in class HttpMethodBasepublic String getPath()
HttpMethodBasegetPath in interface HttpMethodgetPath in class HttpMethodBasepublic URI getURI() throws URIException
HttpMethodBasegetURI in interface HttpMethodgetURI in class HttpMethodBaseURIException - If the URI cannot be created.HttpMethod.getURI()public int execute(HttpState state, HttpConnection conn) throws IOException, HttpException
execute in interface HttpMethodexecute in class HttpMethodBasestate - the current http stateconn - the connection to write toHttpException - when an error occurs writing the headersIOException - when an error occurs writing the headersHttpConnection.tunnelCreated()Copyright © 2010 - 2020 Adobe. All Rights Reserved