Class DefaultServerEndpointConfigurator
- java.lang.Object
-
- jakarta.websocket.server.ServerEndpointConfig.Configurator
-
- org.apache.tomcat.websocket.server.DefaultServerEndpointConfigurator
-
public class DefaultServerEndpointConfigurator extends ServerEndpointConfig.Configurator
-
-
Constructor Summary
Constructors Constructor Description DefaultServerEndpointConfigurator()
-
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
-
getEndpointInstance
public <T> T getEndpointInstance(java.lang.Class<T> clazz) throws java.lang.InstantiationException
- Overrides:
getEndpointInstance
in classServerEndpointConfig.Configurator
- Throws:
java.lang.InstantiationException
-
getNegotiatedSubprotocol
public java.lang.String getNegotiatedSubprotocol(java.util.List<java.lang.String> supported, java.util.List<java.lang.String> requested)
- Overrides:
getNegotiatedSubprotocol
in classServerEndpointConfig.Configurator
-
getNegotiatedExtensions
public java.util.List<Extension> getNegotiatedExtensions(java.util.List<Extension> installed, java.util.List<Extension> requested)
- Overrides:
getNegotiatedExtensions
in classServerEndpointConfig.Configurator
-
checkOrigin
public boolean checkOrigin(java.lang.String originHeaderValue)
- Overrides:
checkOrigin
in classServerEndpointConfig.Configurator
-
modifyHandshake
public void modifyHandshake(ServerEndpointConfig sec, HandshakeRequest request, HandshakeResponse response)
- Overrides:
modifyHandshake
in classServerEndpointConfig.Configurator
-
-