public class JsrAnnotatedEventDriver extends AbstractJsrEventDriver
config, jsrsession, metadata
activeMessage, policy, session, TARGET_LOG, websocket
Constructor and Description |
---|
JsrAnnotatedEventDriver(WebSocketPolicy policy,
EndpointInstance endpointInstance,
JsrEvents<?,?> events) |
Modifier and Type | Method and Description |
---|---|
void |
init(JsrSession jsrsession) |
void |
onBinaryFrame(ByteBuffer buffer,
boolean fin)
Entry point for all incoming binary frames.
|
void |
onBinaryMessage(byte[] data)
Entry point for binary frames destined for
Whole |
protected void |
onClose(CloseReason closereason) |
void |
onConnect() |
void |
onError(Throwable cause) |
void |
onFrame(Frame frame) |
void |
onInputStream(InputStream stream) |
void |
onPartialBinaryMessage(ByteBuffer buffer,
boolean fin) |
void |
onPartialTextMessage(String message,
boolean fin) |
void |
onPing(ByteBuffer buffer) |
void |
onPong(ByteBuffer buffer) |
void |
onReader(Reader reader) |
void |
onTextFrame(ByteBuffer buffer,
boolean fin)
Entry point for all incoming text frames.
|
void |
onTextMessage(String message)
Entry point for whole text messages
|
void |
setPathParameters(Map<String,String> pathParameters) |
String |
toString() |
getConfig, getJsrSession, getMetadata, onClose, openSession, setEndpointconfig
appendMessage, dispatch, getPolicy, getSession, incomingError, incomingFrame, onContinuationFrame, terminateConnection
public JsrAnnotatedEventDriver(WebSocketPolicy policy, EndpointInstance endpointInstance, JsrEvents<?,?> events)
public void init(JsrSession jsrsession)
init
in class AbstractJsrEventDriver
public void onBinaryFrame(ByteBuffer buffer, boolean fin) throws IOException
IOException
public void onBinaryMessage(byte[] data)
Whole
protected void onClose(CloseReason closereason)
onClose
in class AbstractJsrEventDriver
public void onConnect()
public void onError(Throwable cause)
public void onFrame(Frame frame)
onFrame
in interface EventDriver
onFrame
in class AbstractJsrEventDriver
public void onInputStream(InputStream stream)
public void onPartialBinaryMessage(ByteBuffer buffer, boolean fin)
public void onPartialTextMessage(String message, boolean fin)
public void onPing(ByteBuffer buffer)
onPing
in interface EventDriver
onPing
in class AbstractEventDriver
public void onPong(ByteBuffer buffer)
onPong
in interface EventDriver
onPong
in class AbstractEventDriver
public void onReader(Reader reader)
public void onTextFrame(ByteBuffer buffer, boolean fin) throws IOException
IOException
public void onTextMessage(String message)
public void setPathParameters(Map<String,String> pathParameters)
setPathParameters
in class AbstractJsrEventDriver
Copyright © 1995-2015 Webtide. All Rights Reserved.