Top Description Fields Constructors Methods
org.springframework.web.socket.server.standard

public Class SpringConfigurator

extends Configurator
Class Inheritance
Imports
java.util.Arrays, .Map, java.util.concurrent.ConcurrentHashMap, jakarta.websocket.server.ServerEndpoint, .ServerEndpointConfig.Configurator, org.apache.commons.logging.Log, .LogFactory, org.springframework.core.annotation.AnnotationUtils, org.springframework.lang.Nullable, org.springframework.stereotype.Component, org.springframework.util.ClassUtils, .ObjectUtils, org.springframework.web.context.ContextLoader, .WebApplicationContext

A jakarta.websocket.server.ServerEndpointConfig.Configurator for initializing ServerEndpoint-annotated classes through Spring.

@ServerEndpoint(value = "/echo", configurator = SpringConfigurator.class)
public class EchoEndpoint {
    // ...
}
Author
Rossen Stoyanchev
Since
4.0
See Also
ServerEndpointExporter

Field Summary

Modifier and TypeField and Description
private static final Map<String, Map<Class<?>, String>>
private static final Log
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private String
public <T> T
Inherited from jakarta.websocket.server.ServerEndpointConfig.Configurator:
checkOrigingetContainerDefaultConfiguratorgetNegotiatedExtensionsgetNegotiatedSubprotocolmodifyHandshake

Field Detail

cacheback to summary
private static final Map<String, Map<Class<?>, String>> cache
loggerback to summary
private static final Log logger
NO_VALUEback to summary
private static final String NO_VALUE

Constructor Detail

SpringConfiguratorback to summary
public SpringConfigurator()

Method Detail

getBeanNameByTypeback to summary
private String getBeanNameByType(WebApplicationContext wac, Class<?> endpointClass)
Annotations
@Nullable
getEndpointInstanceback to summary
public <T> T getEndpointInstance(Class<T> endpointClass) throws InstantiationException

Overrides jakarta.websocket.server.ServerEndpointConfig.Configurator.getEndpointInstance.

Annotations
@SuppressWarnings:unchecked
@Override