类 WebSphereRequestUpgradeStrategy
- java.lang.Object
- org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategy
- org.springframework.web.socket.server.standard.WebSphereRequestUpgradeStrategy
- 所有已实现的接口:
RequestUpgradeStrategy
public class WebSphereRequestUpgradeStrategy extends AbstractStandardUpgradeStrategy
WebSphere support for upgrading anHttpServletRequest
during a WebSocket handshake. To modify properties of the underlyingServerContainer
you can useServletServerContainerFactoryBean
in XML configuration or, when using Java configuration, access the container instance through the "javax.websocket.server.ServerContainer" ServletContext attribute.Tested with WAS Liberty beta (August 2015) for the upcoming 8.5.5.7 release.
- 从以下版本开始:
- 4.2.1
- 作者:
- Rossen Stoyanchev
字段概要
从类继承的字段 org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategy
logger
构造器概要
构造器 构造器 说明 WebSphereRequestUpgradeStrategy()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String[]
getSupportedVersions()
Return the supported WebSocket protocol versions.void
upgradeInternal(ServerHttpRequest httpRequest, ServerHttpResponse httpResponse, String selectedProtocol, List<Extension> selectedExtensions, Endpoint endpoint)
从类继承的方法 org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategy
getContainer, getHttpServletRequest, getHttpServletResponse, getInstalledExtensions, getSupportedExtensions, upgrade
构造器详细资料
WebSphereRequestUpgradeStrategy
public WebSphereRequestUpgradeStrategy()
方法详细资料
getSupportedVersions
public String[] getSupportedVersions()
从接口复制的说明:RequestUpgradeStrategy
Return the supported WebSocket protocol versions.
upgradeInternal
public void upgradeInternal(ServerHttpRequest httpRequest, ServerHttpResponse httpResponse, String selectedProtocol, List<Extension> selectedExtensions, Endpoint endpoint) throws HandshakeFailureException