|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrabbit.httpio.ProxyResolver
public class ProxyResolver
A resolver that always return the proxy address.
Constructor Summary | |
---|---|
ProxyResolver(InetAddress proxy,
int port,
String auth)
Create a new ProxyResolver that will always return the given address. |
Method Summary | |
---|---|
int |
getConnectPort(int wantedPort)
Get the port to use for connecting to a given port. |
void |
getInetAddress(URL url,
InetAddressListener listener)
Get the InetAddress for a given url. |
String |
getProxyAuthString()
Get the currently set proxy authentication. |
boolean |
isProxyConnected()
Check if the resolver is using a proxy or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyResolver(InetAddress proxy, int port, String auth)
proxy
- the upstream proxy to use for all requestsport
- the upstream proxy port to use for all requestsauth
- the upstream proxy basic auth string to use for all requestMethod Detail |
---|
public void getInetAddress(URL url, InetAddressListener listener)
Resolver
getInetAddress
in interface Resolver
url
- the URL to lookup.listener
- the InetAddressListener to notify when lookup is done.public int getConnectPort(int wantedPort)
Resolver
getConnectPort
in interface Resolver
wantedPort
- the port number we are trying to use
public boolean isProxyConnected()
Resolver
isProxyConnected
in interface Resolver
public String getProxyAuthString()
Resolver
getProxyAuthString
in interface Resolver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |