public class SynchronousResolver extends Object
| Constructor and Description |
|---|
SynchronousResolver(ApplicationContextNAF appctx,
String dname,
boolean withNafman,
Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Launches the background thread in which the resolution of DNS requests is performed asynchronously.
|
ResolverAnswer |
resolveAAAA(CharSequence domnam) |
ResolverAnswer |
resolveHostname(CharSequence hostname) |
ResolverAnswer |
resolveIP(int ipaddr) |
ResolverAnswer |
resolveMailDomain(CharSequence maildom) |
ResolverAnswer |
resolveNameServer(CharSequence domnam) |
ResolverAnswer |
resolveSOA(CharSequence domnam) |
ResolverAnswer |
resolveSRV(CharSequence domnam) |
ResolverAnswer |
resolveTXT(CharSequence domnam) |
Dispatcher.STOPSTATUS |
shutdown() |
public SynchronousResolver(ApplicationContextNAF appctx, String dname, boolean withNafman, Logger logger) throws IOException
IOExceptionpublic void init()
public Dispatcher.STOPSTATUS shutdown()
public ResolverAnswer resolveHostname(CharSequence hostname) throws IOException
IOExceptionpublic ResolverAnswer resolveIP(int ipaddr) throws IOException
IOExceptionpublic ResolverAnswer resolveNameServer(CharSequence domnam) throws IOException
IOExceptionpublic ResolverAnswer resolveMailDomain(CharSequence maildom) throws IOException
IOExceptionpublic ResolverAnswer resolveSOA(CharSequence domnam) throws IOException
IOExceptionpublic ResolverAnswer resolveSRV(CharSequence domnam) throws IOException
IOExceptionpublic ResolverAnswer resolveTXT(CharSequence domnam) throws IOException
IOExceptionpublic ResolverAnswer resolveAAAA(CharSequence domnam) throws IOException
IOExceptionCopyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.