Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.sip.net
Class AutoProxyConnection.LocalNetworkUtils

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.sip.net.AutoProxyConnection.LocalNetworkUtils
Enclosing class:
AutoProxyConnection

protected static class AutoProxyConnection.LocalNetworkUtils
extends Object

Wrapper around NetworkUtils to support Unit Tests.


Constructor Summary
protected AutoProxyConnection.LocalNetworkUtils()
           
 
Method Summary
 InetSocketAddress[] getAandAAAARecords(String target, int port)
           
 InetAddress getInetAddress(String address)
           
 String[][] getNAPTRRecords(String address)
           
 SRVRecord[] getSRVRecords(String domain)
           
 SRVRecord[] getSRVRecords(String service, String proto, String address)
           
 boolean isValidIPAddress(String address)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoProxyConnection.LocalNetworkUtils

protected AutoProxyConnection.LocalNetworkUtils()
Method Detail

getInetAddress

public InetAddress getInetAddress(String address)
                           throws UnknownHostException
Throws:
UnknownHostException

getNAPTRRecords

public String[][] getNAPTRRecords(String address)
                           throws ParseException,
                                  DnssecException
Throws:
ParseException
DnssecException

getSRVRecords

public SRVRecord[] getSRVRecords(String service,
                                 String proto,
                                 String address)
                          throws ParseException,
                                 DnssecException
Throws:
ParseException
DnssecException

getAandAAAARecords

public InetSocketAddress[] getAandAAAARecords(String target,
                                              int port)
                                       throws ParseException,
                                              DnssecException
Throws:
ParseException
DnssecException

isValidIPAddress

public boolean isValidIPAddress(String address)

getSRVRecords

public SRVRecord[] getSRVRecords(String domain)
                          throws ParseException,
                                 DnssecException
Throws:
ParseException
DnssecException

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.