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

public Class DefaultHandshakeHandler

extends AbstractHandshakeHandler
implements ServletContextAware
Class Inheritance
All Implemented Interfaces
org.springframework.web.context.ServletContextAware, org.springframework.beans.factory.Aware
Imports
jakarta.servlet.ServletContext, org.springframework.web.context.ServletContextAware, org.springframework.web.socket.server.RequestUpgradeStrategy

A default org.springframework.web.socket.server.HandshakeHandler implementation, extending AbstractHandshakeHandler with Servlet-specific initialization support. See AbstractHandshakeHandler's javadoc for details on supported servers etc.
Authors
Rossen Stoyanchev, Juergen Hoeller
Since
4.0

Field Summary

Inherited from org.springframework.web.socket.server.support.AbstractHandshakeHandler:
logger

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public void
setServletContext(ServletContext
the ServletContext object to be used by this object
servletContext
)

Implements org.springframework.web.context.ServletContextAware.setServletContext.

Set the ServletContext 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.

Inherited from org.springframework.web.socket.server.support.AbstractHandshakeHandler:
determineHandlerSupportedProtocolsdetermineUserdoHandshakedoStartdoStopfilterRequestedExtensionsgetRequestUpgradeStrategygetSupportedProtocolsgetSupportedVersionshandleInvalidConnectHeaderhandleInvalidUpgradeHeaderhandleWebSocketVersionNotSupportedisRunningisValidOriginisWebSocketVersionSupportedselectProtocolsetSupportedProtocolsstartstop

Constructor Detail

DefaultHandshakeHandlerback to summary
public DefaultHandshakeHandler()
DefaultHandshakeHandlerback to summary
public DefaultHandshakeHandler(RequestUpgradeStrategy requestUpgradeStrategy)

Method Detail

setServletContextback to summary
public void setServletContext(ServletContext servletContext)

Implements org.springframework.web.context.ServletContextAware.setServletContext.

Doc from org.springframework.web.context.ServletContextAware.setServletContext.

Set the ServletContext 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.

Parameters
servletContext:ServletContext

the ServletContext object to be used by this object

Annotations
@Override