Smack

org.jivesoftware.smack.util.dns
Class JavaxResolver

java.lang.Object
  extended by org.jivesoftware.smack.util.dns.JavaxResolver
All Implemented Interfaces:
DNSResolver

public class JavaxResolver
extends Object
implements DNSResolver

A DNS resolver (mostly for SRV records), which makes use of the API provided in the javax.* namespace.

Author:
Florian Schmaus

Method Summary
static DNSResolver getInstance()
           
static boolean isSupported()
           
 List<SRVRecord> lookupSRVRecords(String name)
          Gets a list of service records for the specified service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DNSResolver getInstance()

isSupported

public static boolean isSupported()

lookupSRVRecords

public List<SRVRecord> lookupSRVRecords(String name)
Description copied from interface: DNSResolver
Gets a list of service records for the specified service.

Specified by:
lookupSRVRecords in interface DNSResolver
Parameters:
name - The symbolic name of the service.
Returns:
The list of SRV records mapped to the service name.

Smack

Copyright © 2003-2007 Jive Software.