|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServerEndpointConfiguration
The ServerEndpointConfiguration is a special kind of endpoint configuration object that contains web socket configuration information specific only to server endpoints. The parametrized type T is the type of the Endpoint that this configures.
Method Summary | |
---|---|
boolean |
checkOrigin(String originHeaderValue)
Check the value of the Origin header (See Origin Header) the client passed during the opening handshake. |
Class<?> |
getEndpointClass()
Returns the Class of the endpoint this configuration is configuring. |
List<Extension> |
getNegotiatedExtensions(List<Extension> requestedExtensions)
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. |
Methods inherited from interface javax.websocket.EndpointConfiguration |
---|
getDecoders, getEncoders |
Method Detail |
---|
Class<?> getEndpointClass()
String getNegotiatedSubprotocol(List<String> requestedSubprotocols)
requestedSubprotocols
- the requested subprotocols.
List<Extension> getNegotiatedExtensions(List<Extension> 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |