| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | |
| private static final Pattern | |
| private final String | providedProtocol
Attribute for the provided protocol |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | acceptProvidedProtocol(String inputProtocolHeader)
Implements org. Check if the received Sec-WebSocket-Protocol header field contains a offer for the specific protocol |
| public IProtocol | copyInstance()
Implements org. To prevent protocols to be used more than once the Websocket implementation should call this method in order to create a new usable version of a given protocol instance. |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | getProvidedProtocol()
Implements org. Return the specific Sec-WebSocket-protocol header offer for this protocol if the endpoint. |
| public int | |
| public String | toString()
Overrides java. Implements org. Return a string which should contain the protocol name as well as additional information about the current configurations for this protocol (DEBUG purposes) |
| patternComma | back to summary |
|---|---|
| private static final Pattern patternComma | |
| patternSpace | back to summary |
|---|---|
| private static final Pattern patternSpace | |
| providedProtocol | back to summary |
|---|---|
| private final String providedProtocol Attribute for the provided protocol | |
| Protocol | back to summary |
|---|---|
| public Protocol(String providedProtocol) Constructor for a Sec-Websocket-Protocol
| |
| acceptProvidedProtocol | back to summary |
|---|---|
| public boolean acceptProvidedProtocol(String inputProtocolHeader) Implements org. Doc from org. Check if the received Sec-WebSocket-Protocol header field contains a offer for the specific protocol
| |
| copyInstance | back to summary |
|---|---|
| public IProtocol copyInstance() Implements org. Doc from org. To prevent protocols to be used more than once the Websocket implementation should call this method in order to create a new usable version of a given protocol instance.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getProvidedProtocol | back to summary |
|---|---|
| public String getProvidedProtocol() Implements org. Doc from org. Return the specific Sec-WebSocket-protocol header offer for this protocol if the endpoint. If the extension returns an empty string (""), the offer will not be included in the handshake.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements org. Doc from org. Return a string which should contain the protocol name as well as additional information about the current configurations for this protocol (DEBUG purposes)
| |