org.locomotive.util
Class INet

java.lang.Object
  |
  +--org.locomotive.util.INet

public class INet
extends java.lang.Object

Holds library calls for internet-related networking stuff. Links in liblevinet.so for native calls to support the verification of email addresses via DNS. Potential source for problems here (hanging from threads built up waiting for long-to-timeout DNS lookups) so watch the hell out.


Constructor Summary
INet()
           
 
Method Summary
static boolean verifyDomain(java.lang.String domain)
          Verify, via a native DNS call, that the given domain exists.
static boolean verifyEmailAddress(java.lang.String email)
          Expects a full user@domain format address, not just domain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

INet

public INet()
Method Detail

verifyEmailAddress

public static boolean verifyEmailAddress(java.lang.String email)
Expects a full user@domain format address, not just domain. Performs DNS lookup on domain for email address but WILL NOT check syntax! Use StringConstraints instead. Some side-effect syntax checking will be done here, however. Note: will make a native call to DNS accessors.
Parameters:
email - the string containing the email address to be looked up
See Also:
StringConstraint

verifyDomain

public static boolean verifyDomain(java.lang.String domain)
Verify, via a native DNS call, that the given domain exists.