public class DnsSrv
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DnsSrv.SrvRecord |
| Constructor and Description |
|---|
DnsSrv() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<DnsSrv.SrvRecord> |
lookupSrvRecords(java.lang.String serviceName) |
static java.util.List<DnsSrv.SrvRecord> |
sortSrvRecords(java.util.List<DnsSrv.SrvRecord> srvRecords)
Sort a list of DNS SRV records according to the sorting rules described in rfc2782.
|
public static java.util.List<DnsSrv.SrvRecord> lookupSrvRecords(java.lang.String serviceName) throws javax.naming.NamingException
javax.naming.NamingExceptionpublic static java.util.List<DnsSrv.SrvRecord> sortSrvRecords(java.util.List<DnsSrv.SrvRecord> srvRecords)
srvRecords - the list of DnsSrv.SrvRecords to sort.DnsSrv.SrvRecords.