Class ProxyClient
- java.lang.Object
-
- org.apache.hc.client5.http.impl.classic.ProxyClient
-
public class ProxyClient extends java.lang.Object
ProxyClient can be used to establish a tunnel via an HTTP/1.1 proxy.
-
-
Field Summary
Fields Modifier and Type Field Description private HttpAuthenticator
authenticator
private org.apache.hc.core5.http.config.Lookup<AuthSchemeFactory>
authSchemeRegistry
private org.apache.hc.core5.http.io.HttpConnectionFactory<ManagedHttpClientConnection>
connFactory
private org.apache.hc.core5.http.protocol.HttpProcessor
httpProcessor
private AuthExchange
proxyAuthExchange
private AuthenticationStrategy
proxyAuthStrategy
private RequestConfig
requestConfig
private org.apache.hc.core5.http.impl.io.HttpRequestExecutor
requestExec
private org.apache.hc.core5.http.ConnectionReuseStrategy
reuseStrategy
-
Constructor Summary
Constructors Constructor Description ProxyClient()
ProxyClient(RequestConfig requestConfig)
ProxyClient(org.apache.hc.core5.http.io.HttpConnectionFactory<ManagedHttpClientConnection> connFactory, org.apache.hc.core5.http.config.Http1Config h1Config, org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig, RequestConfig requestConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.Socket
tunnel(org.apache.hc.core5.http.HttpHost proxy, org.apache.hc.core5.http.HttpHost target, Credentials credentials)
-
-
-
Field Detail
-
connFactory
private final org.apache.hc.core5.http.io.HttpConnectionFactory<ManagedHttpClientConnection> connFactory
-
requestConfig
private final RequestConfig requestConfig
-
httpProcessor
private final org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor
-
requestExec
private final org.apache.hc.core5.http.impl.io.HttpRequestExecutor requestExec
-
proxyAuthStrategy
private final AuthenticationStrategy proxyAuthStrategy
-
authenticator
private final HttpAuthenticator authenticator
-
proxyAuthExchange
private final AuthExchange proxyAuthExchange
-
authSchemeRegistry
private final org.apache.hc.core5.http.config.Lookup<AuthSchemeFactory> authSchemeRegistry
-
reuseStrategy
private final org.apache.hc.core5.http.ConnectionReuseStrategy reuseStrategy
-
-
Constructor Detail
-
ProxyClient
public ProxyClient(org.apache.hc.core5.http.io.HttpConnectionFactory<ManagedHttpClientConnection> connFactory, org.apache.hc.core5.http.config.Http1Config h1Config, org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig, RequestConfig requestConfig)
- Since:
- 5.0
-
ProxyClient
public ProxyClient(RequestConfig requestConfig)
- Since:
- 4.3
-
ProxyClient
public ProxyClient()
-
-
Method Detail
-
tunnel
public java.net.Socket tunnel(org.apache.hc.core5.http.HttpHost proxy, org.apache.hc.core5.http.HttpHost target, Credentials credentials) throws java.io.IOException, org.apache.hc.core5.http.HttpException
- Throws:
java.io.IOException
org.apache.hc.core5.http.HttpException
-
-