public class SpringConfigurator extends ServerEndpointConfig.Configurator
ServerEndpointConfig.Configurator
for initializing
ServerEndpoint
-annotated classes through Spring.
@ServerEndpoint(value = "/echo", configurator = SpringConfigurator.class) public class EchoEndpoint { // ... }
ServerEndpointExporter
Constructor and Description |
---|
SpringConfigurator() |
Modifier and Type | Method and Description |
---|---|
<T> T |
getEndpointInstance(Class<T> endpointClass) |
checkOrigin, getNegotiatedExtensions, getNegotiatedSubprotocol, modifyHandshake
public <T> T getEndpointInstance(Class<T> endpointClass) throws InstantiationException
getEndpointInstance
in class ServerEndpointConfig.Configurator
InstantiationException