org.apache.http.impl.client
Class ProxyClient

java.lang.Object
  extended by org.apache.http.impl.client.ProxyClient

public class ProxyClient
extends java.lang.Object

ProxyClient can be used to establish a tunnel via an HTTP proxy.


Constructor Summary
ProxyClient()
           
ProxyClient(HttpConnectionFactory<org.apache.http.conn.routing.HttpRoute,ManagedHttpClientConnection> connFactory, ConnectionConfig connectionConfig, RequestConfig requestConfig)
           
ProxyClient(org.apache.http.params.HttpParams params)
          Deprecated. (4.3) use ProxyClient(HttpConnectionFactory, ConnectionConfig, RequestConfig)
ProxyClient(RequestConfig requestConfig)
           
 
Method Summary
 org.apache.http.auth.AuthSchemeRegistry getAuthSchemeRegistry()
          Deprecated. (4.3) do not use.
 org.apache.http.params.HttpParams getParams()
          Deprecated. (4.3) do not use.
 java.net.Socket tunnel(org.apache.http.HttpHost proxy, org.apache.http.HttpHost target, org.apache.http.auth.Credentials credentials)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyClient

public ProxyClient(HttpConnectionFactory<org.apache.http.conn.routing.HttpRoute,ManagedHttpClientConnection> connFactory,
                   ConnectionConfig connectionConfig,
                   RequestConfig requestConfig)
Since:
4.3

ProxyClient

@Deprecated
public ProxyClient(org.apache.http.params.HttpParams params)
Deprecated. (4.3) use ProxyClient(HttpConnectionFactory, ConnectionConfig, RequestConfig)


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 org.apache.http.auth.AuthSchemeRegistry getAuthSchemeRegistry()
Deprecated. (4.3) do not use.


tunnel

public java.net.Socket tunnel(org.apache.http.HttpHost proxy,
                              org.apache.http.HttpHost target,
                              org.apache.http.auth.Credentials credentials)
                       throws java.io.IOException,
                              org.apache.http.HttpException
Throws:
java.io.IOException
org.apache.http.HttpException