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
IOException
public void init()
public Dispatcher.STOPSTATUS shutdown()
public ResolverAnswer resolveHostname(CharSequence hostname) throws IOException
IOException
public ResolverAnswer resolveIP(int ipaddr) throws IOException
IOException
public ResolverAnswer resolveNameServer(CharSequence domnam) throws IOException
IOException
public ResolverAnswer resolveMailDomain(CharSequence maildom) throws IOException
IOException
public ResolverAnswer resolveSOA(CharSequence domnam) throws IOException
IOException
public ResolverAnswer resolveSRV(CharSequence domnam) throws IOException
IOException
public ResolverAnswer resolveTXT(CharSequence domnam) throws IOException
IOException
public ResolverAnswer resolveAAAA(CharSequence domnam) throws IOException
IOException
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.