Package org.jivesoftware.openfire.net
Class SrvRecord
- java.lang.Object
-
- org.jivesoftware.openfire.net.SrvRecord
-
- All Implemented Interfaces:
Serializable
@Immutable public class SrvRecord extends Object implements Serializable
A (partial) representation of an SRV record, containing an (unresolved) hostname, port, priority and weight attributes. It is expected to be used primarily to represent the result of an SRV query. This representation does not include other attributes of an SRV record, such as the service name, transport protocol and time-to-live. An indicator is included that signals if the address is to be used with DirectTLS (as opposed to STARTTLS) encryption. This value can be thought of as being a derivative of the 'service' that was looked up, as for example, a lookup result for 'xmpp-server' would not be DirectTLS, as opposed to a lookup result for 'xmpps-server', that would be DirectTLS- Author:
- Guus der Kinderen, guus@goodbytes.nl
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static SrvRecordfrom(String[] srvRecordEntries, boolean directTLS)StringgetHostname()intgetPort()intgetPriority()intgetWeight()inthashCode()booleanisDirectTLS()static List<Set<SrvRecord>>prioritize(Collection<SrvRecord> records)static List<Set<SrvRecord>>prioritize(SrvRecord[] records)StringtoString()
-