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(String originHeaderValue)
<T> T
getEndpointInstance(Class<T> clazz)
List<Extension>
getNegotiatedExtensions(List<Extension> installed, List<Extension> requested)
String
getNegotiatedSubprotocol(List<String> supported, List<String> requested)
void
modifyHandshake(ServerEndpointConfig sec, HandshakeRequest request, HandshakeResponse response)
-
-
-
Method Detail
-
getEndpointInstance
public <T> T getEndpointInstance(Class<T> clazz) throws InstantiationException
- Overrides:
getEndpointInstance
in classServerEndpointConfig.Configurator
- Throws:
InstantiationException
-
getNegotiatedSubprotocol
public String getNegotiatedSubprotocol(List<String> supported, List<String> requested)
- Overrides:
getNegotiatedSubprotocol
in classServerEndpointConfig.Configurator
-
getNegotiatedExtensions
public List<Extension> getNegotiatedExtensions(List<Extension> installed, List<Extension> requested)
- Overrides:
getNegotiatedExtensions
in classServerEndpointConfig.Configurator
-
checkOrigin
public boolean checkOrigin(String originHeaderValue)
- Overrides:
checkOrigin
in classServerEndpointConfig.Configurator
-
modifyHandshake
public void modifyHandshake(ServerEndpointConfig sec, HandshakeRequest request, HandshakeResponse response)
- Overrides:
modifyHandshake
in classServerEndpointConfig.Configurator
-
-