public class DefaultHandshakeHandler extends AbstractHandshakeHandler implements ServletContextAware
HandshakeHandler implementation,
extending AbstractHandshakeHandler with Servlet-specific initialization support.
See AbstractHandshakeHandler's javadoc for details on supported servers etc.logger| Constructor and Description |
|---|
DefaultHandshakeHandler() |
DefaultHandshakeHandler(RequestUpgradeStrategy requestUpgradeStrategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
setServletContext(ServletContext servletContext)
Set the
ServletContext that this object runs in. |
determineHandlerSupportedProtocols, determineUser, doHandshake, doStart, doStop, filterRequestedExtensions, getRequestUpgradeStrategy, getSupportedProtocols, getSupportedVersions, handleInvalidConnectHeader, handleInvalidUpgradeHeader, handleWebSocketVersionNotSupported, isRunning, isValidOrigin, isWebSocketVersionSupported, selectProtocol, setSupportedProtocols, start, stoppublic DefaultHandshakeHandler()
public DefaultHandshakeHandler(RequestUpgradeStrategy requestUpgradeStrategy)
public void setServletContext(ServletContext servletContext)
ServletContextAwareServletContext 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's
setApplicationContext.
setServletContext in interface ServletContextAwareservletContext - the ServletContext object to be used by this objectInitializingBean.afterPropertiesSet(),
ApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)