org.littleshoot.util
Class SrvUtilImpl

java.lang.Object
  extended by org.littleshoot.util.SrvUtilImpl
All Implemented Interfaces:
SrvUtil

public class SrvUtilImpl
extends Object
implements SrvUtil

Utility method for accessing DNS SRV records.


Constructor Summary
SrvUtilImpl()
          Creates a new SRV utility class.
 
Method Summary
 InetSocketAddress getAddress(String lookupName)
           
 Collection<InetSocketAddress> getAddresses(String lookupName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SrvUtilImpl

public SrvUtilImpl()
Creates a new SRV utility class.

Method Detail

getAddresses

public Collection<InetSocketAddress> getAddresses(String lookupName)
                                           throws IOException
Specified by:
getAddresses in interface SrvUtil
Throws:
IOException

getAddress

public InetSocketAddress getAddress(String lookupName)
                             throws IOException
Specified by:
getAddress in interface SrvUtil
Throws:
IOException


Copyright © 2011-2013 LittleShoot. All Rights Reserved.