Class AbstractEventDriver
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.websocket.common.events.AbstractEventDriver
-
- All Implemented Interfaces:
LifeCycle
,IncomingFrames
,EventDriver
- Direct Known Subclasses:
JettyAnnotatedEventDriver
,JettyListenerEventDriver
@Deprecated(since="2021-05-27") public abstract class AbstractEventDriver extends AbstractLifeCycle implements IncomingFrames, EventDriver
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.EventDriver is the main interface between the User's WebSocket POJO and the internal jetty implementation of WebSocket.
-
-
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
-
-
Constructor Summary
Constructors Constructor Description AbstractEventDriver(WebSocketPolicy policy, java.lang.Object websocket)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BatchMode
getBatchMode()
Deprecated.WebSocketPolicy
getPolicy()
Deprecated.WebSocketSession
getSession()
Deprecated.void
incomingFrame(Frame frame)
Deprecated.Process the incoming frame.void
onContinuationFrame(java.nio.ByteBuffer buffer, boolean fin)
Deprecated.void
onPing(java.nio.ByteBuffer buffer)
Deprecated.void
onPong(java.nio.ByteBuffer buffer)
Deprecated.void
openSession(WebSocketSession session)
Deprecated.-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.websocket.common.events.EventDriver
onBinaryFrame, onBinaryMessage, onClose, onConnect, onError, onFrame, onInputStream, onReader, onTextFrame, onTextMessage
-
-
-
-
Constructor Detail
-
AbstractEventDriver
public AbstractEventDriver(WebSocketPolicy policy, java.lang.Object websocket)
Deprecated.
-
-
Method Detail
-
getPolicy
public WebSocketPolicy getPolicy()
Deprecated.- Specified by:
getPolicy
in interfaceEventDriver
-
getSession
public WebSocketSession getSession()
Deprecated.- Specified by:
getSession
in interfaceEventDriver
-
incomingFrame
public void incomingFrame(Frame frame)
Deprecated.Description copied from interface:IncomingFrames
Process the incoming frame.Note: if you need to hang onto any information from the frame, be sure to copy it, as the information contained in the Frame will be released and/or reused by the implementation.
- Specified by:
incomingFrame
in interfaceIncomingFrames
- Parameters:
frame
- the frame to process
-
onContinuationFrame
public void onContinuationFrame(java.nio.ByteBuffer buffer, boolean fin) throws java.io.IOException
Deprecated.- Specified by:
onContinuationFrame
in interfaceEventDriver
- Throws:
java.io.IOException
-
onPong
public void onPong(java.nio.ByteBuffer buffer)
Deprecated.- Specified by:
onPong
in interfaceEventDriver
-
onPing
public void onPing(java.nio.ByteBuffer buffer)
Deprecated.- Specified by:
onPing
in interfaceEventDriver
-
getBatchMode
public BatchMode getBatchMode()
Deprecated.- Specified by:
getBatchMode
in interfaceEventDriver
-
openSession
public void openSession(WebSocketSession session)
Deprecated.- Specified by:
openSession
in interfaceEventDriver
-
-