public abstract class AbstractWebSocketHandshake extends Object implements WebSocketHandshake
| Constructor and Description |
|---|
AbstractWebSocketHandshake() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getRequestedProtocols()
The sub protocols requested by the client.
|
String |
getSelectedProtocol()
Gets the current selected sub protocol out of the requested sub
protocols.
|
boolean |
selectProtocol(String subprotocol)
Selects the first matching supported sub protocol out of the requested
sub protocols.
|
void |
setRequestedProtocols(Set<String> requestedProtocols) |
public Set<String> getRequestedProtocols()
WebSocketHandshakegetRequestedProtocols in interface WebSocketHandshakepublic String getSelectedProtocol()
WebSocketHandshakegetSelectedProtocol in interface WebSocketHandshakepublic boolean selectProtocol(String subprotocol)
WebSocketHandshakeselectProtocol in interface WebSocketHandshakeCopyright © 2019 ninjaframework. All rights reserved.