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()
WebSocketHandshake
getRequestedProtocols
in interface WebSocketHandshake
public String getSelectedProtocol()
WebSocketHandshake
getSelectedProtocol
in interface WebSocketHandshake
public boolean selectProtocol(String subprotocol)
WebSocketHandshake
selectProtocol
in interface WebSocketHandshake
Copyright © 2019 ninjaframework. All rights reserved.