Class AbstractJsrEventDriver
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.websocket.common.events.AbstractEventDriver
-
- org.eclipse.jetty.websocket.jsr356.endpoints.AbstractJsrEventDriver
-
- All Implemented Interfaces:
org.eclipse.jetty.util.component.LifeCycle,org.eclipse.jetty.websocket.api.extensions.IncomingFrames,org.eclipse.jetty.websocket.common.events.EventDriver
- Direct Known Subclasses:
JsrAnnotatedEventDriver,JsrEndpointEventDriver
public abstract class AbstractJsrEventDriver extends org.eclipse.jetty.websocket.common.events.AbstractEventDriver
-
-
Field Summary
Fields Modifier and Type Field Description protected EndpointConfigconfigprotected JsrSessionjsrsessionprotected EndpointMetadatametadata
-
Constructor Summary
Constructors Constructor Description AbstractJsrEventDriver(org.eclipse.jetty.websocket.api.WebSocketPolicy policy, EndpointInstance endpointInstance)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description EndpointConfiggetConfig()SessiongetJsrSession()EndpointMetadatagetMetadata()abstract voidinit(JsrSession jsrsession)protected abstract voidonClose(CloseReason closereason)voidonClose(org.eclipse.jetty.websocket.common.CloseInfo close)voidonFrame(org.eclipse.jetty.websocket.api.extensions.Frame frame)voidopenSession(org.eclipse.jetty.websocket.common.WebSocketSession session)voidsetEndpointconfig(EndpointConfig endpointconfig)abstract voidsetPathParameters(Map<String,String> pathParameters)-
Methods inherited from class org.eclipse.jetty.websocket.common.events.AbstractEventDriver
appendMessage, dispatch, getBatchMode, getPolicy, getSession, incomingError, incomingFrame, onContinuationFrame, onPing, onPong, terminateConnection
-
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, toString
-
-
-
-
Field Detail
-
metadata
protected final EndpointMetadata metadata
-
config
protected final EndpointConfig config
-
jsrsession
protected JsrSession jsrsession
-
-
Constructor Detail
-
AbstractJsrEventDriver
public AbstractJsrEventDriver(org.eclipse.jetty.websocket.api.WebSocketPolicy policy, EndpointInstance endpointInstance)
-
-
Method Detail
-
getConfig
public EndpointConfig getConfig()
-
getJsrSession
public Session getJsrSession()
-
getMetadata
public EndpointMetadata getMetadata()
-
init
public abstract void init(JsrSession jsrsession)
-
onClose
public final void onClose(org.eclipse.jetty.websocket.common.CloseInfo close)
-
onClose
protected abstract void onClose(CloseReason closereason)
-
onFrame
public void onFrame(org.eclipse.jetty.websocket.api.extensions.Frame frame)
-
openSession
public final void openSession(org.eclipse.jetty.websocket.common.WebSocketSession session)
- Specified by:
openSessionin interfaceorg.eclipse.jetty.websocket.common.events.EventDriver- Overrides:
openSessionin classorg.eclipse.jetty.websocket.common.events.AbstractEventDriver
-
setEndpointconfig
public void setEndpointconfig(EndpointConfig endpointconfig)
-
-