Class GlassFishRequestUpgradeStrategy
- java.lang.Object
- org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategy
- org.springframework.web.socket.server.standard.AbstractTyrusRequestUpgradeStrategy
- org.springframework.web.socket.server.standard.GlassFishRequestUpgradeStrategy
- All Implemented Interfaces:
RequestUpgradeStrategy
public class GlassFishRequestUpgradeStrategy extends AbstractTyrusRequestUpgradeStrategy
A WebSocketRequestUpgradeStrategy
for Oracle's GlassFish 4.1 and higher.- Since:
- 4.0
- Author:
- Rossen Stoyanchev, Juergen Hoeller, Michael Irwin
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.web.socket.server.standard.AbstractTyrusRequestUpgradeStrategy
AbstractTyrusRequestUpgradeStrategy.Tyrus135EndpointHelper, AbstractTyrusRequestUpgradeStrategy.Tyrus17EndpointHelper, AbstractTyrusRequestUpgradeStrategy.TyrusEndpointHelper
Field Summary
Fields inherited from class org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategy
logger
Constructor Summary
Constructors Constructor Description GlassFishRequestUpgradeStrategy()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractTyrusRequestUpgradeStrategy.TyrusEndpointHelper
getEndpointHelper()
protected void
handleSuccess(HttpServletRequest request, HttpServletResponse response, org.glassfish.tyrus.spi.WebSocketEngine.UpgradeInfo upgradeInfo, org.glassfish.tyrus.core.TyrusUpgradeResponse upgradeResponse)
Methods inherited from class org.springframework.web.socket.server.standard.AbstractTyrusRequestUpgradeStrategy
getInstalledExtensions, getSupportedVersions, upgradeInternal
Methods inherited from class org.springframework.web.socket.server.standard.AbstractStandardUpgradeStrategy
getContainer, getHttpServletRequest, getHttpServletResponse, getSupportedExtensions, upgrade
Constructor Detail
GlassFishRequestUpgradeStrategy
public GlassFishRequestUpgradeStrategy()
Method Detail
getEndpointHelper
protected AbstractTyrusRequestUpgradeStrategy.TyrusEndpointHelper getEndpointHelper()
- Specified by:
getEndpointHelper
in classAbstractTyrusRequestUpgradeStrategy
handleSuccess
protected void handleSuccess(HttpServletRequest request, HttpServletResponse response, org.glassfish.tyrus.spi.WebSocketEngine.UpgradeInfo upgradeInfo, org.glassfish.tyrus.core.TyrusUpgradeResponse upgradeResponse) throws IOException, ServletException
- Specified by:
handleSuccess
in classAbstractTyrusRequestUpgradeStrategy
- Throws:
IOException
ServletException