Class ReverseDNSRunnable
java.lang.Object
org.apereo.cas.support.spnego.util.ReverseDNSRunnable
- All Implemented Interfaces:
Runnable
Utility class to perform DNS work in a threaded, timeout-able way
Adapted from: here.
- Since:
- 4.1
-
Constructor Summary
ConstructorsConstructorDescriptionReverseDNSRunnable(String ipAddress) Simple constructor which also pre-sets hostName attribute for failover situations. -
Method Summary
-
Constructor Details
-
ReverseDNSRunnable
Simple constructor which also pre-sets hostName attribute for failover situations.- Parameters:
ipAddress- the ip address on which reverse DNS will be done.
-
-
Method Details
-
run
public void run()Runnable implementation to thread the work done in this class, allowing the implementer to set a thread timeout and thereby short-circuit the lookup. -
set
Glorified setter with logging.- Parameters:
hostName- the resolved hostname
-
toString
-
getIpAddress
Remote user IP address. -
getHostName
Remote user hostname.
-