Class WebSocketAddress

    • Constructor Detail

      • WebSocketAddress

        public WebSocketAddress()
        Default Constructor
      • WebSocketAddress

        public WebSocketAddress​(WebSocketAddress webSocketAddressObj)
        Copy constructor
        Parameters:
        webSocketAddressObj - reference to the object to be copied
      • WebSocketAddress

        public WebSocketAddress​(WebSocketProtocol protocol,
                                String host,
                                Integer port,
                                String path)
        Parameterized constructor
        Parameters:
        protocol - Websocket protocol type
        host - Websocket host
        port - Websocket port
        path - Websocket path
    • Method Detail

      • getProtocol

        public WebSocketProtocol getProtocol()
        Gets Protocol
        Returns:
        Websocket protocol type
      • setProtocol

        public void setProtocol​(WebSocketProtocol protocol)
        Sets Protocol
        Parameters:
        protocol - Websocket protocol type
      • getHost

        public String getHost()
        Gets Host
        Returns:
        Websocket host
      • setHost

        public void setHost​(String host)
        Sets Host
        Parameters:
        host - Websocket host
      • getPort

        public Integer getPort()
        Gets Port
        Returns:
        Websocket port
      • setPort

        public void setPort​(Integer port)
        Sets Port
        Parameters:
        port - Websocket port
      • getPath

        public String getPath()
        Gets Path
        Returns:
        Websocket path
      • setPath

        public void setPath​(String path)
        Sets Path
        Parameters:
        path - Websocket path
      • toString

        public String toString()
        Stringifies the class
        Overrides:
        toString in class LocalAddress
        Returns:
        stringified class content
      • equals

        public boolean equals​(Object obj)
        Check for equality
        Overrides:
        equals in class LocalAddress
        Parameters:
        obj - Reference to the object to compare to
        Returns:
        true, if objects are equal, false otherwise
      • hashCode

        public int hashCode()
        Calculate code for hashing based on member contents
        Overrides:
        hashCode in class LocalAddress
        Returns:
        The calculated hash code