Package org.jivesoftware.openfire.net
Class SrvRecord
java.lang.Object
org.jivesoftware.openfire.net.SrvRecord
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SrvRecordintgetPort()intintinthashCode()booleanprioritize(Collection<SrvRecord> records) prioritize(SrvRecord[] records) toString()
-
Constructor Details
-
SrvRecord
-
SrvRecord
-
-
Method Details
-
from
-
getHostname
-
getPort
public int getPort() -
isDirectTLS
public boolean isDirectTLS() -
getPriority
public int getPriority() -
getWeight
public int getWeight() -
equals
-
hashCode
public int hashCode() -
toString
-
prioritize
-
prioritize
-