public class GlassFishWebSocketSupport extends GrizzlyCometSupport
cancelledAction, config, timedoutAction
Constructor and Description |
---|
GlassFishWebSocketSupport(AtmosphereConfig config) |
Modifier and Type | Method and Description |
---|---|
String |
getContainerName()
Return the container's name.
|
void |
init(javax.servlet.ServletConfig sc)
Init Grizzly's
CometContext that will be used to suspend and resume the response. |
Action |
service(AtmosphereRequest request,
AtmosphereResponse response)
|
void |
shutdown() |
boolean |
supportWebSocket()
Return true if this implementation supports the websocket protocol.
|
action, cancelled, complete
allowSessionTimeoutRemoval, completeLifecycle, endRequest, invokeAtmosphereHandler, invokeInterceptors, map, postInterceptors, resumed, supportSession, suspended, timedout
public GlassFishWebSocketSupport(AtmosphereConfig config)
public void init(javax.servlet.ServletConfig sc) throws javax.servlet.ServletException
GrizzlyCometSupport
CometContext
that will be used to suspend and resume the response.init
in interface AsyncSupport<AtmosphereResourceImpl>
init
in class GrizzlyCometSupport
sc
- the ServletContext
javax.servlet.ServletException
public void shutdown()
shutdown
in class AsynchronousProcessor
public Action service(AtmosphereRequest request, AtmosphereResponse response) throws IOException, javax.servlet.ServletException
AsyncSupport
service
in interface AsyncSupport<AtmosphereResourceImpl>
service
in class GrizzlyCometSupport
request
- the AtmosphereRequest
response
- the AtmosphereResponse
Action
that was manipulated by the AtmosphereHandler
IOException
javax.servlet.ServletException
public String getContainerName()
getContainerName
in interface AsyncSupport<AtmosphereResourceImpl>
getContainerName
in class AsynchronousProcessor
public boolean supportWebSocket()
AsyncSupport
supportWebSocket
in interface AsyncSupport<AtmosphereResourceImpl>
supportWebSocket
in class AsynchronousProcessor
Copyright © 2016. All rights reserved.