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.EndpointConfig
config
protected JsrSession
jsrsession
protected EndpointMetadata
metadata
-
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.EndpointConfig
getConfig()
javax.websocket.Session
getJsrSession()
EndpointMetadata
getMetadata()
abstract void
init(JsrSession jsrsession)
protected abstract void
onClose(javax.websocket.CloseReason closereason)
void
onClose(CloseInfo close)
void
onFrame(Frame frame)
void
openSession(WebSocketSession session)
void
setEndpointconfig(javax.websocket.EndpointConfig endpointconfig)
abstract void
setPathParameters(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:
openSession
in interfaceEventDriver
- Overrides:
openSession
in classAbstractEventDriver
-
setEndpointconfig
public void setEndpointconfig(javax.websocket.EndpointConfig endpointconfig)
-
setPathParameters
public abstract void setPathParameters(java.util.Map<java.lang.String,java.lang.String> pathParameters)
-
-