Class HandshakedataImpl1

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] content
      Attribute for the content of the handshake
      private java.util.TreeMap<java.lang.String,​java.lang.String> map
      Attribute for the http fields and values
    • Constructor Summary

      Constructors 
      Constructor Description
      HandshakedataImpl1()
      Constructor for handshake implementation
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getContent()
      Get the content of the handshake
      java.lang.String getFieldValue​(java.lang.String name)
      Gets the value of the field
      boolean hasFieldValue​(java.lang.String name)
      Checks if this handshake contains a specific field
      java.util.Iterator<java.lang.String> iterateHttpFields()
      Iterator for the http fields
      void put​(java.lang.String name, java.lang.String value)
      Adding a specific field with a specific value
      void setContent​(byte[] content)
      Setter for the content of the handshake
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • content

        private byte[] content
        Attribute for the content of the handshake
      • map

        private java.util.TreeMap<java.lang.String,​java.lang.String> map
        Attribute for the http fields and values
    • Constructor Detail

      • HandshakedataImpl1

        public HandshakedataImpl1()
        Constructor for handshake implementation
    • Method Detail

      • iterateHttpFields

        public java.util.Iterator<java.lang.String> iterateHttpFields()
        Description copied from interface: Handshakedata
        Iterator for the http fields
        Specified by:
        iterateHttpFields in interface Handshakedata
        Returns:
        the http fields
      • getFieldValue

        public java.lang.String getFieldValue​(java.lang.String name)
        Description copied from interface: Handshakedata
        Gets the value of the field
        Specified by:
        getFieldValue in interface Handshakedata
        Parameters:
        name - The name of the field
        Returns:
        the value of the field or an empty String if not in the handshake
      • getContent

        public byte[] getContent()
        Description copied from interface: Handshakedata
        Get the content of the handshake
        Specified by:
        getContent in interface Handshakedata
        Returns:
        the content as byte-array
      • setContent

        public void setContent​(byte[] content)
        Description copied from interface: HandshakeBuilder
        Setter for the content of the handshake
        Specified by:
        setContent in interface HandshakeBuilder
        Parameters:
        content - the content to set
      • put

        public void put​(java.lang.String name,
                        java.lang.String value)
        Description copied from interface: HandshakeBuilder
        Adding a specific field with a specific value
        Specified by:
        put in interface HandshakeBuilder
        Parameters:
        name - the http field
        value - the value for this field
      • hasFieldValue

        public boolean hasFieldValue​(java.lang.String name)
        Description copied from interface: Handshakedata
        Checks if this handshake contains a specific field
        Specified by:
        hasFieldValue in interface Handshakedata
        Parameters:
        name - The name of the field
        Returns:
        true, if it contains the field