public class JsrEndpointEventDriver extends AbstractJsrEventDriver
Endpoint
config, jsrsession, metadata
activeMessage, policy, session, TARGET_LOG, websocket
Constructor and Description |
---|
JsrEndpointEventDriver(WebSocketPolicy policy,
EndpointInstance endpointInstance) |
Modifier and Type | Method and Description |
---|---|
void |
init(JsrSession jsrsession) |
void |
onBinaryFrame(ByteBuffer buffer,
boolean fin) |
void |
onBinaryMessage(byte[] data) |
protected void |
onClose(CloseReason closereason) |
void |
onConnect() |
void |
onError(Throwable cause) |
void |
onFrame(Frame frame) |
void |
onInputStream(InputStream stream) |
void |
onPing(ByteBuffer buffer) |
void |
onPong(ByteBuffer buffer) |
void |
onReader(Reader reader) |
void |
onTextFrame(ByteBuffer buffer,
boolean fin) |
void |
onTextMessage(String message) |
void |
setPathParameters(Map<String,String> pathParameters) |
String |
toString() |
getConfig, getJsrSession, getMetadata, onClose, openSession, setEndpointconfig
appendMessage, dispatch, getPolicy, getSession, incomingError, incomingFrame, onContinuationFrame, terminateConnection
public JsrEndpointEventDriver(WebSocketPolicy policy, EndpointInstance endpointInstance)
public void init(JsrSession jsrsession)
init
in class AbstractJsrEventDriver
public void onBinaryFrame(ByteBuffer buffer, boolean fin) throws IOException
IOException
public void onBinaryMessage(byte[] data)
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 onReader(Reader reader)
public void onTextFrame(ByteBuffer buffer, boolean fin) throws IOException
IOException
public void onTextMessage(String message)
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 setPathParameters(Map<String,String> pathParameters)
setPathParameters
in class AbstractJsrEventDriver
Copyright © 1995-2015 Webtide. All Rights Reserved.