Package org.apache.http.impl.client
Class ProxyClient
- java.lang.Object
-
- org.apache.http.impl.client.ProxyClient
-
public class ProxyClient extends java.lang.ObjectProxyClient can be used to establish a tunnel via an HTTP proxy.
-
-
Constructor Summary
Constructors Constructor Description ProxyClient()ProxyClient(RequestConfig requestConfig)ProxyClient(HttpConnectionFactory<HttpRoute,ManagedHttpClientConnection> connFactory, org.apache.http.config.ConnectionConfig connectionConfig, RequestConfig requestConfig)ProxyClient(org.apache.http.params.HttpParams params)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AuthSchemeRegistrygetAuthSchemeRegistry()Deprecated.(4.3) do not use.org.apache.http.params.HttpParamsgetParams()Deprecated.(4.3) do not use.java.net.Sockettunnel(org.apache.http.HttpHost proxy, org.apache.http.HttpHost target, Credentials credentials)
-
-
-
Constructor Detail
-
ProxyClient
public ProxyClient(HttpConnectionFactory<HttpRoute,ManagedHttpClientConnection> connFactory, org.apache.http.config.ConnectionConfig connectionConfig, RequestConfig requestConfig)
- Since:
- 4.3
-
ProxyClient
@Deprecated public ProxyClient(org.apache.http.params.HttpParams params)
Deprecated.
-
ProxyClient
public ProxyClient(RequestConfig requestConfig)
- Since:
- 4.3
-
ProxyClient
public ProxyClient()
-
-
Method Detail
-
getParams
@Deprecated public org.apache.http.params.HttpParams getParams()
Deprecated.(4.3) do not use.
-
getAuthSchemeRegistry
@Deprecated public AuthSchemeRegistry getAuthSchemeRegistry()
Deprecated.(4.3) do not use.
-
tunnel
public java.net.Socket tunnel(org.apache.http.HttpHost proxy, org.apache.http.HttpHost target, Credentials credentials) throws java.io.IOException, org.apache.http.HttpException- Throws:
java.io.IOExceptionorg.apache.http.HttpException
-
-