Class WebSocketScheme
java.lang.Object
io.netty.handler.codec.http.websocketx.WebSocketScheme
public final class WebSocketScheme
extends java.lang.Object
Defines the common schemes used for the WebSocket protocol as defined by
rfc6455.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AsciiStringprivate final intstatic final WebSocketSchemeScheme for non-secure WebSocket connection.static final WebSocketSchemeScheme for secure WebSocket connection. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
WS
Scheme for non-secure WebSocket connection. -
WSS
Scheme for secure WebSocket connection. -
port
private final int port -
name
-
-
Constructor Details
-
WebSocketScheme
private WebSocketScheme(int port, java.lang.String name)
-
-
Method Details
-
name
-
port
public int port() -
equals
public boolean equals(java.lang.Object o) - Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-