Package org.eclipse.jetty.client
Class HttpProxy
- java.lang.Object
-
- org.eclipse.jetty.client.ProxyConfiguration.Proxy
-
- org.eclipse.jetty.client.HttpProxy
-
public class HttpProxy extends ProxyConfiguration.Proxy
-
-
Constructor Summary
Constructors Constructor Description HttpProxy(java.lang.String host, int port)
HttpProxy(Origin.Address address, boolean secure)
HttpProxy(Origin.Address address, SslContextFactory.Client sslContextFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URI
getURI()
ClientConnectionFactory
newClientConnectionFactory(ClientConnectionFactory connectionFactory)
-
Methods inherited from class org.eclipse.jetty.client.ProxyConfiguration.Proxy
getAddress, getExcludedAddresses, getIncludedAddresses, getSslContextFactory, isSecure, matches, toString
-
-
-
-
Constructor Detail
-
HttpProxy
public HttpProxy(java.lang.String host, int port)
-
HttpProxy
public HttpProxy(Origin.Address address, boolean secure)
-
HttpProxy
public HttpProxy(Origin.Address address, SslContextFactory.Client sslContextFactory)
-
-
Method Detail
-
newClientConnectionFactory
public ClientConnectionFactory newClientConnectionFactory(ClientConnectionFactory connectionFactory)
- Specified by:
newClientConnectionFactory
in classProxyConfiguration.Proxy
- Parameters:
connectionFactory
- the nestedClientConnectionFactory
- Returns:
- a new
ClientConnectionFactory
for thisProxyConfiguration.Proxy
-
getURI
public java.net.URI getURI()
- Overrides:
getURI
in classProxyConfiguration.Proxy
- Returns:
- an URI representing this proxy, or null if no URI can represent this proxy
-
-