Smack

org.jivesoftware.smack.util.dns
Class DNSJavaResolver

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

public class DNSJavaResolver
extends java.lang.Object
implements DNSResolver

This implementation uses the dnsjava implementation for resolving DNS addresses.


Method Summary
static DNSResolver getInstance()
           
 java.util.List<SRVRecord> lookupSRVRecords(java.lang.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()

lookupSRVRecords

public java.util.List<SRVRecord> lookupSRVRecords(java.lang.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.