Class 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
    • Constructor Detail

      • SrvRecord

        public SrvRecord​(@Nonnull
                         String hostname,
                         int port,
                         boolean isDirectTLS)
      • SrvRecord

        public SrvRecord​(@Nonnull
                         String hostname,
                         int port,
                         boolean isDirectTLS,
                         int priority,
                         int weight)