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.URIgetURI()ClientConnectionFactorynewClientConnectionFactory(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:
newClientConnectionFactoryin classProxyConfiguration.Proxy- Parameters:
connectionFactory- the nestedClientConnectionFactory- Returns:
- a new
ClientConnectionFactoryfor thisProxyConfiguration.Proxy
-
getURI
public java.net.URI getURI()
- Overrides:
getURIin classProxyConfiguration.Proxy- Returns:
- an URI representing this proxy, or null if no URI can represent this proxy
-
-