Package org.burningwave.tools.net
Class DNSClientHostResolver
java.lang.Object
org.burningwave.tools.net.DNSClientHostResolver
- All Implemented Interfaces:
HostResolver
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final org.burningwave.core.function.ThrowingBiFunction<DNSClientHostResolver, String, byte[], IOException> static final org.burningwave.core.function.ThrowingBiFunction<DNSClientHostResolver, String, byte[], IOException> -
Constructor Summary
ConstructorsConstructorDescriptionDNSClientHostResolver(String dNSServerIP) DNSClientHostResolver(String dNSServerIP, int dNSServerPort) DNSClientHostResolver(String dNSServerIP, int dNSServerPort, org.burningwave.core.function.ThrowingBiFunction<DNSClientHostResolver, String, byte[], IOException>... resolveHostForNameRequestSenders) DNSClientHostResolver(String dNSServerIP, org.burningwave.core.function.ThrowingBiFunction<DNSClientHostResolver, String, byte[], IOException>... resolveHostForNameRequestSenders) -
Method Summary
Modifier and TypeMethodDescriptiongetAllAddressesForHostName(Map<String, Object> argumentMap) getAllHostNamesForHostAddress(Map<String, Object> argumentMap) static Collection<DNSClientHostResolver> newInstances(Supplier<Collection<Map<String, Object>>> configuration) resolveHostForAddress(byte[] iPAddressAsBytes) resolveHostForAddress(String iPAddress) resolveHostForName(String hostName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.burningwave.tools.net.HostResolver
checkAndGetAllAddressesForHostName, checkAndGetAllHostNamesForHostAddress, getMethodArguments, handle, isReady
-
Field Details
-
DEFAULT_PORT
public static final int DEFAULT_PORT -
IPV4_RETRIEVER
public static final org.burningwave.core.function.ThrowingBiFunction<DNSClientHostResolver,String, IPV4_RETRIEVERbyte[], IOException> -
IPV6_RETRIEVER
public static final org.burningwave.core.function.ThrowingBiFunction<DNSClientHostResolver,String, IPV6_RETRIEVERbyte[], IOException>
-
-
Constructor Details
-
DNSClientHostResolver
-
DNSClientHostResolver
-
DNSClientHostResolver
public DNSClientHostResolver(String dNSServerIP, org.burningwave.core.function.ThrowingBiFunction<DNSClientHostResolver, String, byte[], IOException>... resolveHostForNameRequestSenders) -
DNSClientHostResolver
public DNSClientHostResolver(String dNSServerIP, int dNSServerPort, org.burningwave.core.function.ThrowingBiFunction<DNSClientHostResolver, String, byte[], IOException>... resolveHostForNameRequestSenders)
-
-
Method Details
-
newInstances
public static Collection<DNSClientHostResolver> newInstances(Supplier<Collection<Map<String, Object>>> configuration) -
getAllAddressesForHostName
- Specified by:
getAllAddressesForHostNamein interfaceHostResolver
-
resolveHostForName
-
getAllHostNamesForHostAddress
- Specified by:
getAllHostNamesForHostAddressin interfaceHostResolver
-
resolveHostForAddress
-
resolveHostForAddress
-