public interface ServerConfiguration extends EndpointConfiguration
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkOrigin(String originHeaderValue)
Check the value of the Origin header (See definition) the client passed during the opening
handshake.
|
List<Extension> |
getNegotiatedExtensions(List<Extension> requestedExtensions)
Return the ordered list of extensions that this server will support given the requested
extension list passed in.
|
String |
getNegotiatedSubprotocol(List<String> requestedSubprotocols)
Return the subprotocol this server endpoint has chosen from the requested
list supplied by a client who wishes to connect, or none if there wasn't one
this server endpoint liked.
|
boolean |
matchesURI(URI uri)
Answers whether the current configuration matches the given URI.
|
void |
modifyHandshake(HandshakeRequest request,
HandshakeResponse response)
Called by the container after it has formulated a handshake response resulting from
a well-formed handshake request.
|
getDecoders, getEncodersString getNegotiatedSubprotocol(List<String> requestedSubprotocols)
clientSubprotocolList - List<Extension> getNegotiatedExtensions(List<Extension> requestedExtensions)
extensions - boolean checkOrigin(String originHeaderValue)
originHeaderValue - boolean matchesURI(URI uri)
uri - void modifyHandshake(HandshakeRequest request, HandshakeResponse response)
headers - principal - requestURI - Copyright © 2012. All Rights Reserved.