|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServerConfiguration
The ServerConfiguration is a special kind of endpoint configuration object that contains web socket configuration information specific only to server endpoints.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface javax.net.websocket.EndpointConfiguration |
|---|
getDecoders, getEncoders |
| Method Detail |
|---|
String 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 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||