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:
org.eclipse.jetty.util.component.LifeCycle, IncomingFrames, EventDriver
Handler for Annotated User WebSocket objects.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BatchModeprivate final JettyAnnotatedMetadataprivate booleanprivate static final org.eclipse.jetty.util.log.LoggerFields inherited from class AbstractEventDriver
activeMessage, policy, session, targetLog, websocketFields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING -
Constructor Summary
ConstructorsConstructorDescriptionJettyAnnotatedEventDriver(WebSocketPolicy policy, Object websocket, JettyAnnotatedMetadata events) -
Method Summary
Modifier and TypeMethodDescriptionvoidonBinaryFrame(ByteBuffer buffer, boolean fin) voidonBinaryMessage(byte[] data) voidvoidvoidvoidvoidonInputStream(InputStream stream) voidvoidonTextFrame(ByteBuffer buffer, boolean fin) voidonTextMessage(String message) toString()Methods inherited from class AbstractEventDriver
appendMessage, dispatch, getPolicy, getSession, incomingFrame, onContinuationFrame, onPing, onPong, openSessionMethods 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
-
Field Details
-
LOG
private static final org.eclipse.jetty.util.log.Logger LOG -
events
-
hasCloseBeenCalled
private boolean hasCloseBeenCalled -
batchMode
-
-
Constructor Details
-
JettyAnnotatedEventDriver
public JettyAnnotatedEventDriver(WebSocketPolicy policy, Object websocket, JettyAnnotatedMetadata events)
-
-
Method Details
-
getBatchMode
- Specified by:
getBatchModein interfaceEventDriver- Overrides:
getBatchModein classAbstractEventDriver
-
onBinaryFrame
- Throws:
IOException
-
onBinaryMessage
public void onBinaryMessage(byte[] data) -
onClose
-
onConnect
public void onConnect() -
onError
-
onFrame
-
onInputStream
-
onReader
-
onTextFrame
- Throws:
IOException
-
onTextMessage
-
toString
- Overrides:
toStringin classorg.eclipse.jetty.util.component.AbstractLifeCycle
-