Class DefaultHandshakeHandler
java.lang.Object
org.springframework.web.socket.server.support.AbstractHandshakeHandler
org.springframework.web.socket.server.support.DefaultHandshakeHandler
- All Implemented Interfaces:
Aware
,Lifecycle
,ServletContextAware
,HandshakeHandler
public class DefaultHandshakeHandler
extends AbstractHandshakeHandler
implements ServletContextAware
A default
HandshakeHandler
implementation,
extending AbstractHandshakeHandler
with Servlet-specific initialization support.
See AbstractHandshakeHandler
's javadoc for details on supported servers etc.- Since:
- 4.0
- Author:
- Rossen Stoyanchev, Juergen Hoeller
-
Field Summary
Fields inherited from class org.springframework.web.socket.server.support.AbstractHandshakeHandler
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setServletContext
(ServletContext servletContext) Set theServletContext
that this object runs in.Methods inherited from class org.springframework.web.socket.server.support.AbstractHandshakeHandler
determineHandlerSupportedProtocols, determineUser, doHandshake, doStart, doStop, filterRequestedExtensions, getRequestUpgradeStrategy, getSupportedProtocols, getSupportedVersions, handleInvalidConnectHeader, handleInvalidUpgradeHeader, handleWebSocketVersionNotSupported, isRunning, isValidOrigin, isWebSocketVersionSupported, selectProtocol, setSupportedProtocols, start, stop
-
Constructor Details
-
DefaultHandshakeHandler
public DefaultHandshakeHandler() -
DefaultHandshakeHandler
-
-
Method Details
-
setServletContext
Description copied from interface:ServletContextAware
Set theServletContext
that this object runs in.Invoked after population of normal bean properties but before an init callback like InitializingBean's
afterPropertiesSet
or a custom init-method. Invoked after ApplicationContextAware'ssetApplicationContext
.- Specified by:
setServletContext
in interfaceServletContextAware
- Parameters:
servletContext
- the ServletContext object to be used by this object- See Also:
-