Package 

Class HandshakedataImpl1

  • All Implemented Interfaces:
    com.tds.common.websocket.handshake.HandshakeBuilder , com.tds.common.websocket.handshake.Handshakedata

    
    public class HandshakedataImpl1
     implements HandshakeBuilder
                        

    Implementation of a handshake builder

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Array<byte> content
    • Constructor Summary

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

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

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

      • HandshakedataImpl1

        HandshakedataImpl1()
        Constructor for handshake implementation
    • Method Detail

      • setContent

         void setContent(Array<byte> content)

        Setter for the content of the handshake

        Parameters:
        content - the content to set
      • put

         void put(String name, String value)

        Adding a specific field with a specific value

        Parameters:
        name - the http field
        value - the value for this field
      • hasFieldValue

         boolean hasFieldValue(String name)

        Checks if this handshake contains a specific field

        Parameters:
        name - The name of the field