public interface ServerEndpointConfiguration 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 - the requested subprotocols.List<Extension> getNegotiatedExtensions(List<Extension> requestedExtensions)
extensions - the requested extentions, in order.boolean checkOrigin(String originHeaderValue)
originHeaderValue - the value of the origin header.boolean matchesURI(URI uri)
uri - the uri of the incoming handshake.void modifyHandshake(HandshakeRequest request, HandshakeResponse response)
request - the opening handshake request.response - the proposed opening handshake responseCopyright © 2012. All Rights Reserved.