Class JettyAnnotatedEventDriver
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.websocket.common.events.AbstractEventDriver
-
- org.eclipse.jetty.websocket.common.events.JettyAnnotatedEventDriver
-
- All Implemented Interfaces:
LifeCycle
,IncomingFrames
,EventDriver
public class JettyAnnotatedEventDriver extends AbstractEventDriver
Handler for Annotated User WebSocket objects.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.websocket.common.events.AbstractEventDriver
activeMessage, policy, session, targetLog, websocket
-
-
Constructor Summary
Constructors Constructor Description JettyAnnotatedEventDriver(WebSocketPolicy policy, java.lang.Object websocket, JettyAnnotatedMetadata events)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchMode
getBatchMode()
void
onBinaryFrame(java.nio.ByteBuffer buffer, boolean fin)
void
onBinaryMessage(byte[] data)
void
onClose(CloseInfo close)
void
onConnect()
void
onError(java.lang.Throwable cause)
void
onFrame(Frame frame)
void
onInputStream(java.io.InputStream stream)
void
onReader(java.io.Reader reader)
void
onTextFrame(java.nio.ByteBuffer buffer, boolean fin)
void
onTextMessage(java.lang.String message)
java.lang.String
toString()
-
Methods inherited from class org.eclipse.jetty.websocket.common.events.AbstractEventDriver
appendMessage, dispatch, getPolicy, getSession, incomingFrame, onContinuationFrame, onPing, onPong, openSession
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, doStart, doStop, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
-
-
-
-
Constructor Detail
-
JettyAnnotatedEventDriver
public JettyAnnotatedEventDriver(WebSocketPolicy policy, java.lang.Object websocket, JettyAnnotatedMetadata events)
-
-
Method Detail
-
getBatchMode
public BatchMode getBatchMode()
- Specified by:
getBatchMode
in interfaceEventDriver
- Overrides:
getBatchMode
in classAbstractEventDriver
-
onBinaryFrame
public void onBinaryFrame(java.nio.ByteBuffer buffer, boolean fin) throws java.io.IOException
- Throws:
java.io.IOException
-
onBinaryMessage
public void onBinaryMessage(byte[] data)
-
onClose
public void onClose(CloseInfo close)
-
onConnect
public void onConnect()
-
onError
public void onError(java.lang.Throwable cause)
-
onFrame
public void onFrame(Frame frame)
-
onInputStream
public void onInputStream(java.io.InputStream stream)
-
onReader
public void onReader(java.io.Reader reader)
-
onTextFrame
public void onTextFrame(java.nio.ByteBuffer buffer, boolean fin) throws java.io.IOException
- Throws:
java.io.IOException
-
onTextMessage
public void onTextMessage(java.lang.String message)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractLifeCycle
-
-