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 defaultHandshakeHandlerimplementation, extendingAbstractHandshakeHandlerwith Servlet-specific initialization support. SeeAbstractHandshakeHandler'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
Constructors Constructor Description DefaultHandshakeHandler()DefaultHandshakeHandler(RequestUpgradeStrategy requestUpgradeStrategy)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetServletContext(ServletContext servletContext)Set theServletContextthat 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 Detail
DefaultHandshakeHandler
public DefaultHandshakeHandler()
DefaultHandshakeHandler
public DefaultHandshakeHandler(RequestUpgradeStrategy requestUpgradeStrategy)
Method Detail
setServletContext
public void setServletContext(ServletContext servletContext)
Description copied from interface:ServletContextAwareSet theServletContextthat this object runs in.Invoked after population of normal bean properties but before an init callback like InitializingBean's
afterPropertiesSetor a custom init-method. Invoked after ApplicationContextAware'ssetApplicationContext.- Specified by:
setServletContextin interfaceServletContextAware- Parameters:
servletContext- ServletContext object to be used by this object- See Also:
InitializingBean.afterPropertiesSet(),ApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)