rabbit.io
Interface Resolver

All Known Implementing Classes:
Proxy

public interface Resolver


Method Summary
 int getConnectPort(int port)
          Get the port to use for connecting to a given port.
 java.net.InetAddress getInetAddress(java.net.URL url)
          Get the InetAddress for a given url.
 java.lang.String getProxyAuthString()
          Get the currently set proxy authentication.
 boolean isProxyConnected()
          Check if the resolver is using a proxy or not.
 

Method Detail

getInetAddress

java.net.InetAddress getInetAddress(java.net.URL url)
                                    throws java.net.UnknownHostException
Get the InetAddress for a given url. Normally the InetAddress of the url host, but might be the InetAddress of the chained proxy to use.

Throws:
java.net.UnknownHostException

getConnectPort

int getConnectPort(int port)
Get the port to use for connecting to a given port. Normally port is returned, but if there is a chained proxy, then the proxy port is returned instead.


isProxyConnected

boolean isProxyConnected()
Check if the resolver is using a proxy or not.


getProxyAuthString

java.lang.String getProxyAuthString()
Get the currently set proxy authentication.