public interface IProtocol
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
acceptProvidedProtocol(String inputProtocolHeader)
Check if the received Sec-WebSocket-Protocol header field contains a offer for the specific protocol
|
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.
|
String |
getProvidedProtocol()
Return the specific Sec-WebSocket-protocol header offer for this protocol if the endpoint.
|
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)
|
boolean acceptProvidedProtocol(String inputProtocolHeader)
inputProtocolHeader - the received Sec-WebSocket-Protocol header field offered by the other endpointString getProvidedProtocol()
IProtocol copyInstance()
Copyright © 2025. All rights reserved.