public class JettyListenerEventDriver extends AbstractEventDriver
WebSocketListener based User WebSocket implementations.AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.Listener| 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 |
onContinuationFrame(ByteBuffer buffer,
boolean fin) |
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() |
getBatchMode, getPolicy, getSession, incomingFrame, onPing, onPong, openSessionaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stoppublic JettyListenerEventDriver(WebSocketPolicy policy, WebSocketConnectionListener listener)
public void onBinaryFrame(ByteBuffer buffer, boolean fin) throws IOException
IOExceptionpublic 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
IOExceptionpublic void onTextMessage(String message)
message - the whole messagepublic void onContinuationFrame(ByteBuffer buffer, boolean fin) throws IOException
onContinuationFrame in interface EventDriveronContinuationFrame in class AbstractEventDriverIOExceptionpublic String toString()
toString in class AbstractLifeCycleCopyright © 2010 - 2020 Adobe. All Rights Reserved