Class StateAttribute


  • public class StateAttribute
    extends Attribute
    Class representing the structure of the State attribute as specified in section 5.24 of RFC 2865 and able to be instantiated from the on-the-wire bytes.
    • Constructor Detail

      • StateAttribute

        public StateAttribute​(String str)
        Creates an instance to contain the given string.
        Parameters:
        str - the opaque state string.
      • StateAttribute

        public StateAttribute​(byte[] octets)
        Creates a ReplyMessageAttribute from the on-the-wire octets.
        Parameters:
        octets - the on-the-wire bytes.
    • Method Detail

      • getState

        public String getState()
        Returns the contained state string.
        Returns:
        the contained state string.
      • toStringImpl

        public String toStringImpl()
        Used by super class to log the attribute's contents when packet logging is enabled.
        Overrides:
        toStringImpl in class Attribute
        Returns:
        content representation for traffic logging