org.apache.commons.httpclient
public class ProxyClient extends Object
Since: 3.0
Version: $Revision: 354155 $
Nested Class Summary | |
---|---|
static class | ProxyClient.ConnectResponse
Contains the method used to execute the connect along with the created socket. |
Constructor Summary | |
---|---|
ProxyClient()
Creates an instance of ProxyClient using default {@link HttpClientParams parameter set}.
| |
ProxyClient(HttpClientParams params)
Creates an instance of ProxyClient using the given
{@link HttpClientParams parameter set}.
|
Method Summary | |
---|---|
ProxyClient.ConnectResponse | connect()
Creates a socket that is connected, via the HTTP CONNECT method, to a proxy.
|
HostConfiguration | getHostConfiguration()
Returns the {@link HostConfiguration host configuration} associated with the
ProxyClient.
|
HttpClientParams | getParams()
Returns {@link HttpClientParams HTTP protocol parameters} associated with this ProxyClient.
|
HttpState | getState()
Returns {@link HttpState HTTP state} associated with the ProxyClient.
|
void | setHostConfiguration(HostConfiguration hostConfiguration)
Assigns the {@link HostConfiguration host configuration} to use with the
ProxyClient.
|
void | setParams(HttpClientParams params)
Assigns {@link HttpClientParams HTTP protocol parameters} for this ProxyClient.
|
void | setState(HttpState state)
Assigns {@link HttpState HTTP state} for the ProxyClient.
|
See Also: HttpClientParams
Parameters: params The {@link HttpClientParams parameters} to use.
See Also: HttpClientParams
Even though HTTP CONNECT proxying is generally used for HTTPS tunneling, the returned socket will not have been wrapped in an SSL socket.
Both the proxy and destination hosts must be set via the {@link #getHostConfiguration() host configuration} prior to calling this method.
Returns: the connect response
Throws: IOException HttpException
See Also: getHostConfiguration
Returns: {@link HostConfiguration host configuration}
See Also: HttpClientParams
Returns: the shared client state
See Also: setState
Parameters: hostConfiguration The {@link HostConfiguration host configuration} to set
See Also: HttpClientParams
Parameters: state the new {@link HttpState HTTP state} for the client
See Also: getState