Class ProxyClient
java.lang.Object
org.apache.hc.client5.http.impl.classic.ProxyClient
ProxyClient can be used to establish a tunnel via an HTTP/1.1 proxy.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HttpAuthenticator
private final org.apache.hc.core5.http.config.Lookup
<AuthSchemeFactory> private final org.apache.hc.core5.http.io.HttpConnectionFactory
<ManagedHttpClientConnection> private final org.apache.hc.core5.http.protocol.HttpProcessor
private final AuthExchange
private final AuthenticationStrategy
private final RequestConfig
private final org.apache.hc.core5.http.impl.io.HttpRequestExecutor
private final org.apache.hc.core5.http.ConnectionReuseStrategy
-
Constructor Summary
ConstructorsConstructorDescriptionProxyClient
(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
Modifier and TypeMethodDescriptiontunnel
(org.apache.hc.core5.http.HttpHost proxy, org.apache.hc.core5.http.HttpHost target, Credentials credentials)
-
Field Details
-
connFactory
private final org.apache.hc.core5.http.io.HttpConnectionFactory<ManagedHttpClientConnection> connFactory -
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
-
authenticator
-
proxyAuthExchange
-
authSchemeRegistry
-
reuseStrategy
private final org.apache.hc.core5.http.ConnectionReuseStrategy reuseStrategy
-
-
Constructor Details
-
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
- Since:
- 4.3
-
ProxyClient
public ProxyClient()
-
-
Method Details
-
tunnel
public Socket tunnel(org.apache.hc.core5.http.HttpHost proxy, org.apache.hc.core5.http.HttpHost target, Credentials credentials) throws IOException, org.apache.hc.core5.http.HttpException - Throws:
IOException
org.apache.hc.core5.http.HttpException
-