|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WebSocketProtocolStream
A streaming API for WebServer that support WebSocket streaming. When a WebSocketProtocol implements this interface,
bytes/text will ve streamed instead of read in memory.
| Method Summary | |
|---|---|
List<AtmosphereRequest> |
onBinaryStream(WebSocket webSocket,
InputStream stream)
Parse the WebSocket stream, and delegate the processing to the AtmosphereFramework.asyncSupport or
to any existing technology. |
List<AtmosphereRequest> |
onTextStream(WebSocket webSocket,
Reader r)
Parse the WebSocket stream, and delegate the processing to the AtmosphereFramework.asyncSupport or
to any existing technology. |
| Methods inherited from interface org.atmosphere.websocket.WebSocketProtocol |
|---|
configure, onClose, onError, onMessage, onMessage, onOpen |
| Method Detail |
|---|
List<AtmosphereRequest> onTextStream(WebSocket webSocket,
Reader r)
AtmosphereFramework.asyncSupport or
to any existing technology. Invoking AtmosphereFramework.asyncSupport 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;
webSocket - The WebSocket connectionr - a Reader
AtmosphereRequest
List<AtmosphereRequest> onBinaryStream(WebSocket webSocket,
InputStream stream)
AtmosphereFramework.asyncSupport or
to any existing technology. Invoking AtmosphereFramework.asyncSupport 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;
webSocket - The WebSocket connectionstream - a Reader
AtmosphereRequest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||