|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrabbit.httpio.SimpleResolver
public class SimpleResolver
A simple resolver that uses the given dns handler.
| Constructor Summary | |
|---|---|
SimpleResolver(NioHandler nio,
DNSHandler dnsHandler)
Create a new Resolver that does normal DNS lookups. |
|
| Method Summary | |
|---|---|
int |
getConnectPort(int port)
Get the port to use for connecting to a given port. |
void |
getInetAddress(java.net.URL url,
InetAddressListener listener)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleResolver(NioHandler nio,
DNSHandler dnsHandler)
nio - the NioHandler to use for running background tasksdnsHandler - the DNSHandler to use for the DNS lookup| Method Detail |
|---|
public void getInetAddress(java.net.URL url,
InetAddressListener listener)
Resolver
getInetAddress in interface Resolverurl - the URL to lookup.listener - the InetAddressListener to notify when lookup is done.public int getConnectPort(int port)
Resolver
getConnectPort in interface Resolverport - the port number we are trying to use
public boolean isProxyConnected()
Resolver
isProxyConnected in interface Resolverpublic java.lang.String getProxyAuthString()
Resolver
getProxyAuthString in interface Resolver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||