| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true, if the offer does fit to this specific protocolthe received Sec-WebSocket-Protocol header field offered by the
other endpoint inputProtocolHeader)Check if the received Sec-WebSocket-Protocol header field contains a offer for the specific protocol |
| public IProtocol | Returns: a copy of the protocolTo 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 String | Returns: the specific Sec-WebSocket-Protocol header for this protocolReturn the specific Sec-WebSocket-protocol header offer for this protocol if the endpoint. |
| public String | Returns: a string containing the protocol name as well as additional informationReturn a string which should contain the protocol name as well as additional information about the current configurations for this protocol (DEBUG purposes) |
| acceptProvidedProtocol | back to summary |
|---|---|
| public boolean acceptProvidedProtocol(String inputProtocolHeader) Check if the received Sec-WebSocket-Protocol header field contains a offer for the specific protocol
| |
| copyInstance | back to summary |
|---|---|
| public IProtocol copyInstance() 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.
| |
| getProvidedProtocol | back to summary |
|---|---|
| public String getProvidedProtocol() 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.
| |
| toString | back to summary |
|---|---|
| public String toString() Return a string which should contain the protocol name as well as additional information about the current configurations for this protocol (DEBUG purposes)
| |