Uses of Class
edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.HttpConnection
Package
Description
Classes and interfaces supporting the client side of the HTTP protocol.
Provides implementation of various authentication schemes as well as
utility classes that can be used to authenticate HTTP requests.
Classes implementing
HttpMethod
for the base HTTP methods.Provides some utility classes for use by HttpClient.
-
Uses of HttpConnection in edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient
Modifier and TypeFieldDescriptionprotected HttpConnection
SimpleHttpConnectionManager.httpConnection
The http connectionModifier and TypeMethodDescriptionHttpConnectionManager.getConnection
(HostConfiguration hostConfiguration) Gets an HttpConnection for a given host configuration.HttpConnectionManager.getConnection
(HostConfiguration hostConfiguration, long timeout) Deprecated.Use #getConnectionWithTimeout(HostConfiguration, long)MultiThreadedHttpConnectionManager.getConnection
(HostConfiguration hostConfiguration) MultiThreadedHttpConnectionManager.getConnection
(HostConfiguration hostConfiguration, long timeout) Deprecated.Use #getConnectionWithTimeout(HostConfiguration, long)SimpleHttpConnectionManager.getConnection
(HostConfiguration hostConfiguration) SimpleHttpConnectionManager.getConnection
(HostConfiguration hostConfiguration, long timeout) Deprecated.Use #getConnectionWithTimeout(HostConfiguration, long)HttpConnectionManager.getConnectionWithTimeout
(HostConfiguration hostConfiguration, long timeout) Gets an HttpConnection for a given host configuration.MultiThreadedHttpConnectionManager.getConnectionWithTimeout
(HostConfiguration hostConfiguration, long timeout) Gets a connection or waits if one is not available.SimpleHttpConnectionManager.getConnectionWithTimeout
(HostConfiguration hostConfiguration, long timeout) This method always returns the same connection object.Modifier and TypeMethodDescriptionprotected void
ConnectMethod.addCookieRequestHeader
(HttpState state, HttpConnection conn) This method does nothing.protected void
HttpMethodBase.addCookieRequestHeader
(HttpState state, HttpConnection conn) Generates Cookie request headers for thosecookie
s 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.addProxyConnectionHeader
(HttpState state, HttpConnection conn) Generates Proxy-Connection: Keep-Alive request header when communicating via a proxy server.protected void
ConnectMethod.addRequestHeaders
(HttpState state, HttpConnection conn) Populates the request headers map to with additionalheaders
to be submitted to the givenHttpConnection
.protected void
HttpMethodBase.addRequestHeaders
(HttpState state, HttpConnection conn) Generates all the required requestheader
s to be submitted via the givenconnection
.protected void
HttpMethodBase.addUserAgentRequestHeader
(HttpState state, HttpConnection conn) Generates default User-Agent request header, as long as no User-Agent request header already exists.int
ConnectMethod.execute
(HttpState state, HttpConnection conn) Execute this method and create a tunneled HttpConnection.int
HttpMethod.execute
(HttpState state, HttpConnection connection) Executes this method using the specifiedHttpConnection
andHttpState
.int
HttpMethodBase.execute
(HttpState state, HttpConnection conn) Executes this method using the specifiedHttpConnection
andHttpState
.protected static String
HttpMethodBase.generateRequestLine
(HttpConnection connection, String name, String requestPath, String query, String version) Generates HTTP request line according to the specified attributes.boolean
HostConfiguration.hostEquals
(HttpConnection connection) Tests if the host configuration equals the configuration set on the connection.protected void
HttpMethodBase.processCookieHeaders
(CookieSpec parser, Header[] headers, HttpState state, HttpConnection conn) This method processes the specified cookie headers.protected void
HttpMethodBase.processResponseBody
(HttpState state, HttpConnection conn) This method is invoked immediately afterHttpMethodBase.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 afterHttpMethodBase.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 afterHttpMethodBase.readStatusLine(HttpState,HttpConnection)
and can be overridden by sub-classes in order to provide custom response status line processing.boolean
HostConfiguration.proxyEquals
(HttpConnection connection) Tests if the proxy configuration equals the configuration set on the connection.protected void
HttpMethodBase.readResponse
(HttpState state, HttpConnection conn) Reads the response from the givenconnection
.protected void
HttpMethodBase.readResponseBody
(HttpState state, HttpConnection conn) Read the response body from the givenHttpConnection
.protected void
HttpMethodBase.readResponseHeaders
(HttpState state, HttpConnection conn) Reads the response headers from the givenconnection
.protected void
HttpMethodBase.readStatusLine
(HttpState state, HttpConnection conn) void
HttpConnectionManager.releaseConnection
(HttpConnection conn) Releases the given HttpConnection for use by other requests.void
MultiThreadedHttpConnectionManager.releaseConnection
(HttpConnection conn) Make the given HttpConnection available for use by other requests.void
SimpleHttpConnectionManager.releaseConnection
(HttpConnection conn) boolean
DefaultMethodRetryHandler.retryMethod
(HttpMethod method, HttpConnection connection, HttpRecoverableException recoverableException, int executionCount, boolean requestSent) Deprecated.UsedretryCount
andrequestSentRetryEnabled
to determine if the given method should be retried.boolean
MethodRetryHandler.retryMethod
(HttpMethod method, HttpConnection connection, HttpRecoverableException recoverableException, int executionCount, boolean requestSent) Deprecated.Determines if a method should be retried after an HttpRecoverableException occurs during execution.protected boolean
ConnectMethod.shouldCloseConnection
(HttpConnection conn) Returnstrue
if the status code is anything other than SC_OK,false
otherwise.protected boolean
HttpMethodBase.shouldCloseConnection
(HttpConnection conn) Tests if the connection should be closed after the method has been executed.protected void
HttpMethodBase.writeRequest
(HttpState state, HttpConnection conn) Sends the request via the givenconnection
.protected boolean
HttpMethodBase.writeRequestBody
(HttpState state, HttpConnection conn) Writes the request body to the givenconnection
.protected void
HttpMethodBase.writeRequestHeaders
(HttpState state, HttpConnection conn) Writes the request headers to the givenconnection
.protected void
ConnectMethod.writeRequestLine
(HttpState state, HttpConnection conn) Special Connect request.protected void
HttpMethodBase.writeRequestLine
(HttpState state, HttpConnection conn) Writes the request line to the givenconnection
. -
Uses of HttpConnection in edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.auth
Modifier and TypeMethodDescriptionstatic boolean
HttpAuthenticator.authenticate
(AuthScheme authscheme, HttpMethod method, HttpConnection conn, HttpState state) Deprecated.use AuthSchemestatic boolean
HttpAuthenticator.authenticateDefault
(HttpMethod method, HttpConnection conn, HttpState state) Deprecated.use AuthSchemestatic boolean
HttpAuthenticator.authenticateProxy
(AuthScheme authscheme, HttpMethod method, HttpConnection conn, HttpState state) Deprecated.use AuthSchemestatic boolean
HttpAuthenticator.authenticateProxyDefault
(HttpMethod method, HttpConnection conn, HttpState state) Deprecated.use AuthScheme -
Uses of HttpConnection in edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.methods
Modifier and TypeMethodDescriptionprotected 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 void
MultipartPostMethod.addContentLengthRequestHeader
(HttpState state, HttpConnection conn) Deprecated.Adds a Content-Length request header, as long as no Content-Length request header already exists.protected void
MultipartPostMethod.addContentTypeRequestHeader
(HttpState state, HttpConnection conn) Deprecated.Adds a Content-Type request header.protected void
EntityEnclosingMethod.addRequestHeaders
(HttpState state, HttpConnection conn) Populates the request headers map to with additionalheaders
to be submitted to the givenHttpConnection
.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
MultipartPostMethod.addRequestHeaders
(HttpState state, HttpConnection conn) Deprecated.Populates the request headers map to with additionalheaders
to be submitted to the givenHttpConnection
.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
HeadMethod.readResponseBody
(HttpState state, HttpConnection conn) OverridesHttpMethodBase
method to not read a response body, despite the presence of a Content-Length or Transfer-Encoding header.protected boolean
EntityEnclosingMethod.writeRequestBody
(HttpState state, HttpConnection conn) Writes the request body to the givenconnection
.protected boolean
MultipartPostMethod.writeRequestBody
(HttpState state, HttpConnection conn) Deprecated.Writes the request body to the givenconnection
. -
Uses of HttpConnection in edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.util
Modifier and TypeMethodDescriptionvoid
IdleConnectionHandler.add
(HttpConnection connection) Registers the given connection with this handler.void
IdleConnectionHandler.remove
(HttpConnection connection) Removes the given connection from the list of connections to be closed when idle.