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,org.eclipse.jetty.websocket.api.extensions.IncomingFrames,EventDriver
public class JettyAnnotatedEventDriver extends AbstractEventDriver
Handler for Annotated User WebSocket objects.
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.websocket.common.events.AbstractEventDriver
activeMessage, policy, session, TARGET_LOG, websocket
-
-
Constructor Summary
Constructors Constructor Description JettyAnnotatedEventDriver(org.eclipse.jetty.websocket.api.WebSocketPolicy policy, Object websocket, JettyAnnotatedMetadata events)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jetty.websocket.api.BatchModegetBatchMode()voidonBinaryFrame(ByteBuffer buffer, boolean fin)voidonBinaryMessage(byte[] data)voidonClose(CloseInfo close)voidonConnect()voidonError(Throwable cause)voidonFrame(org.eclipse.jetty.websocket.api.extensions.Frame frame)voidonInputStream(InputStream stream)voidonReader(Reader reader)voidonTextFrame(ByteBuffer buffer, boolean fin)voidonTextMessage(String message)StringtoString()-
Methods inherited from class org.eclipse.jetty.websocket.common.events.AbstractEventDriver
appendMessage, dispatch, getPolicy, getSession, incomingError, incomingFrame, onContinuationFrame, onPing, onPong, openSession, terminateConnection
-
-
-
-
Constructor Detail
-
JettyAnnotatedEventDriver
public JettyAnnotatedEventDriver(org.eclipse.jetty.websocket.api.WebSocketPolicy policy, Object websocket, JettyAnnotatedMetadata events)
-
-
Method Detail
-
getBatchMode
public org.eclipse.jetty.websocket.api.BatchMode getBatchMode()
- Specified by:
getBatchModein interfaceEventDriver- Overrides:
getBatchModein classAbstractEventDriver
-
onBinaryFrame
public void onBinaryFrame(ByteBuffer buffer, boolean fin) throws IOException
- Throws:
IOException
-
onBinaryMessage
public void onBinaryMessage(byte[] data)
-
onClose
public void onClose(CloseInfo close)
-
onConnect
public void onConnect()
-
onError
public void onError(Throwable cause)
-
onFrame
public void onFrame(org.eclipse.jetty.websocket.api.extensions.Frame frame)
-
onInputStream
public void onInputStream(InputStream stream)
-
onReader
public void onReader(Reader reader)
-
onTextFrame
public void onTextFrame(ByteBuffer buffer, boolean fin) throws IOException
- Throws:
IOException
-
onTextMessage
public void onTextMessage(String message)
-
toString
public String toString()
- Overrides:
toStringin classorg.eclipse.jetty.util.component.AbstractLifeCycle
-
-