public class JettyListenerEventDriver extends AbstractEventDriver
WebSocketListener
based User WebSocket implementations.AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
activeMessage, policy, session, TARGET_LOG, websocket
Constructor and Description |
---|
JettyListenerEventDriver(WebSocketPolicy policy,
WebSocketConnectionListener listener) |
Modifier and Type | Method and Description |
---|---|
void |
onBinaryFrame(ByteBuffer buffer,
boolean fin) |
void |
onBinaryMessage(byte[] data) |
void |
onClose(CloseInfo close) |
void |
onConnect() |
void |
onError(Throwable cause) |
void |
onFrame(Frame frame) |
void |
onInputStream(InputStream stream) |
void |
onReader(Reader reader) |
void |
onTextFrame(ByteBuffer buffer,
boolean fin) |
void |
onTextMessage(String message)
Whole Message event.
|
String |
toString() |
appendMessage, dispatch, getBatchMode, getPolicy, getSession, incomingError, incomingFrame, onContinuationFrame, onPing, onPong, openSession, terminateConnection
addLifeCycleListener, doStart, doStop, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
public JettyListenerEventDriver(WebSocketPolicy policy, WebSocketConnectionListener listener)
public void onBinaryFrame(ByteBuffer buffer, boolean fin) throws IOException
IOException
public void onBinaryMessage(byte[] data)
public void onClose(CloseInfo close)
public void onConnect()
public void onError(Throwable cause)
public void onFrame(Frame frame)
public void onInputStream(InputStream stream)
public void onReader(Reader reader)
public void onTextFrame(ByteBuffer buffer, boolean fin) throws IOException
IOException
public void onTextMessage(String message)
message
- the whole messageCopyright © 1995-2016 Webtide. All Rights Reserved.