|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.websocket.protocol.SimpleHttpProtocol
public class SimpleHttpProtocol
Like the AsynchronousProcessor class, this class is responsible for dispatching WebSocket messages to the
proper WebSocket implementation by wrapping the Websocket message's bytes within
an HttpServletRequest.
ApplicationConfig.WEBSOCKET_CONTENT_TYPE property
The method is defined using ApplicationConfig.WEBSOCKET_METHOD property
| Constructor Summary | |
|---|---|
SimpleHttpProtocol()
|
|
| Method Summary | |
|---|---|
void |
configure(AtmosphereServlet.AtmosphereConfig config)
Allow an implementation to query the AtmosphereConfig of init-param, etc. |
javax.servlet.http.HttpServletRequest |
parseMessage(AtmosphereResource<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> resource,
byte[] d,
int offset,
int length)
Parse the WebSocket message, and delegate the processing to the AtmosphereServlet.cometSupport or
to any existing technology. |
javax.servlet.http.HttpServletRequest |
parseMessage(AtmosphereResource<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> resource,
String d)
Parse the WebSocket message, and delegate the processing to the AtmosphereServlet.cometSupport or
to any existing technology. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleHttpProtocol()
| Method Detail |
|---|
public void configure(AtmosphereServlet.AtmosphereConfig config)
WebSocketProtocol
configure in interface WebSocketProtocolconfig - AtmosphereServlet.AtmosphereConfig
public javax.servlet.http.HttpServletRequest parseMessage(AtmosphereResource<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> resource,
String d)
WebSocketProtocolAtmosphereServlet.cometSupport or
to any existing technology. Invoking AtmosphereServlet.cometSupport will delegate the request processing
to the AtmosphereHandler implementation. Returning null means this implementation will
handle itself the processing/dispatching of the WebSocket's request;
parseMessage in interface WebSocketProtocolresource - The AtmosphereResource associated with the WebSocket Handshaked - The Websocket message
public javax.servlet.http.HttpServletRequest parseMessage(AtmosphereResource<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> resource,
byte[] d,
int offset,
int length)
WebSocketProtocolAtmosphereServlet.cometSupport or
to any existing technology. Invoking AtmosphereServlet.cometSupport will delegate the request processing
to the AtmosphereHandler implementation. Returning null means this implementation will
handle itself the processing/dispatching of the WebSocket's request;
parseMessage in interface WebSocketProtocolresource - The AtmosphereResource associated with the WebSocket Handshaked - The Websocket messageoffset - offset message indexlength - length of the message.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||