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:
LifeCycle,IncomingFrames,EventDriver
- Direct Known Subclasses:
JsrAnnotatedEventDriver,JsrEndpointEventDriver
public abstract class AbstractJsrEventDriver extends AbstractEventDriver
-
-
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 Modifier and Type Field Description protected javax.websocket.EndpointConfigconfigprotected JsrSessionjsrsessionprotected EndpointMetadatametadata-
Fields inherited from class org.eclipse.jetty.websocket.common.events.AbstractEventDriver
activeMessage, policy, session, targetLog, websocket
-
-
Constructor Summary
Constructors Constructor Description AbstractJsrEventDriver(WebSocketPolicy policy, EndpointInstance endpointInstance)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description javax.websocket.EndpointConfiggetConfig()javax.websocket.SessiongetJsrSession()EndpointMetadatagetMetadata()abstract voidinit(JsrSession jsrsession)protected abstract voidonClose(javax.websocket.CloseReason closereason)voidonClose(CloseInfo close)voidonFrame(Frame frame)voidopenSession(WebSocketSession session)voidsetEndpointconfig(javax.websocket.EndpointConfig endpointconfig)abstract voidsetPathParameters(java.util.Map<java.lang.String,java.lang.String> pathParameters)-
Methods inherited from class org.eclipse.jetty.websocket.common.events.AbstractEventDriver
appendMessage, dispatch, getBatchMode, getPolicy, getSession, incomingFrame, onContinuationFrame, onPing, onPong
-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.websocket.common.events.EventDriver
onBinaryFrame, onBinaryMessage, onConnect, onError, onInputStream, onReader, onTextFrame, onTextMessage
-
-
-
-
Field Detail
-
metadata
protected final EndpointMetadata metadata
-
config
protected final javax.websocket.EndpointConfig config
-
jsrsession
protected JsrSession jsrsession
-
-
Constructor Detail
-
AbstractJsrEventDriver
public AbstractJsrEventDriver(WebSocketPolicy policy, EndpointInstance endpointInstance)
-
-
Method Detail
-
getConfig
public javax.websocket.EndpointConfig getConfig()
-
getJsrSession
public javax.websocket.Session getJsrSession()
-
getMetadata
public EndpointMetadata getMetadata()
-
init
public abstract void init(JsrSession jsrsession)
-
onClose
public final void onClose(CloseInfo close)
-
onClose
protected abstract void onClose(javax.websocket.CloseReason closereason)
-
onFrame
public void onFrame(Frame frame)
-
openSession
public final void openSession(WebSocketSession session)
- Specified by:
openSessionin interfaceEventDriver- Overrides:
openSessionin classAbstractEventDriver
-
setEndpointconfig
public void setEndpointconfig(javax.websocket.EndpointConfig endpointconfig)
-
setPathParameters
public abstract void setPathParameters(java.util.Map<java.lang.String,java.lang.String> pathParameters)
-
-