public class ProxyConfiguration extends Object
HttpClient
.
Configuration parameters include the host and port of the forward proxy, and a list of
origins
that are excluded from being proxied.Constructor and Description |
---|
ProxyConfiguration(String host,
int port) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getExcludedOrigins() |
String |
getHost() |
int |
getPort() |
boolean |
matches(String host,
int port)
Matches the given
host and port with the list of excluded origins,
returning true if the origin is to be proxied, false if it is excluded from proxying. |
public ProxyConfiguration(String host, int port)
public String getHost()
public int getPort()
public boolean matches(String host, int port)
host
and port
with the list of excluded origins,
returning true if the origin is to be proxied, false if it is excluded from proxying.host
- the host to matchport
- the port to matchhost
and port
is to be proxied,
false if it is excluded from proxying.Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.