Package jakarta.websocket.server
Class ServerEndpointConfig.Configurator
- java.lang.Object
-
- jakarta.websocket.server.ServerEndpointConfig.Configurator
-
- Enclosing interface:
- ServerEndpointConfig
public static class ServerEndpointConfig.Configurator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Configurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkOrigin(java.lang.String originHeaderValue)
<T> T
getEndpointInstance(java.lang.Class<T> clazz)
java.util.List<Extension>
getNegotiatedExtensions(java.util.List<Extension> installed, java.util.List<Extension> requested)
java.lang.String
getNegotiatedSubprotocol(java.util.List<java.lang.String> supported, java.util.List<java.lang.String> requested)
void
modifyHandshake(ServerEndpointConfig sec, HandshakeRequest request, HandshakeResponse response)
-
-
-
Method Detail
-
getNegotiatedSubprotocol
public java.lang.String getNegotiatedSubprotocol(java.util.List<java.lang.String> supported, java.util.List<java.lang.String> requested)
-
getNegotiatedExtensions
public java.util.List<Extension> getNegotiatedExtensions(java.util.List<Extension> installed, java.util.List<Extension> requested)
-
checkOrigin
public boolean checkOrigin(java.lang.String originHeaderValue)
-
modifyHandshake
public void modifyHandshake(ServerEndpointConfig sec, HandshakeRequest request, HandshakeResponse response)
-
getEndpointInstance
public <T> T getEndpointInstance(java.lang.Class<T> clazz) throws java.lang.InstantiationException
- Throws:
java.lang.InstantiationException
-
-