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<String> |
getNegotiatedExtensions(List<String> requestedExtensions)
http://java.net/jira/browse/WEBSOCKET_SPEC-45
Return the ordered list of extensions that this server will support given the requested
extension list passed in, the empty list if none.
|
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.
|
String |
getPath()
Return the path for this endpoint configuration.
|
boolean |
matchesURI(URI uri)
Answers whether the current configuration matches the given path.
|
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)
requestedSubprotocols - the requested subprotocols.List<String> getNegotiatedExtensions(List<String> requestedExtensions)
requestedExtensions - 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 responseString getPath()
Copyright © 2013. All Rights Reserved.