public class DefaultHandshakeHandler extends AbstractHandshakeHandler implements org.springframework.web.context.ServletContextAware
HandshakeHandler implementation.
Performs initial validation of the WebSocket handshake request -- possibly rejecting it
through the appropriate HTTP status code -- while also allowing sub-classes to override
various parts of the negotiation process (e.g. origin validation, sub-protocol negotiation,
extensions negotiation, etc).
If the negotiation succeeds, the actual upgrade is delegated to a server-specific
RequestUpgradeStrategy, which will update
the response as necessary and initialize the WebSocket. Currently supported servers are
Tomcat 7 and 8, Jetty 9, and GlassFish 4.
logger| Constructor and Description |
|---|
DefaultHandshakeHandler() |
DefaultHandshakeHandler(RequestUpgradeStrategy requestUpgradeStrategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
setServletContext(ServletContext servletContext) |
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)
setServletContext in interface org.springframework.web.context.ServletContextAware