public class JsrAnnotatedEventDriver extends AbstractJsrEventDriver implements EventDriver
config, jsrsession, metadataactiveMessage, policy, session, 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
MessageHandler.Whole |
protected void |
onClose(javax.websocket.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 |
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, setEndpointconfigappendMessage, dispatch, getPolicy, getSession, incomingError, incomingFrame, onContinuationFrame, onPing, terminateConnectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPolicy, getSession, onClose, onContinuationFrame, onPing, openSessionincomingError, incomingFramepublic JsrAnnotatedEventDriver(WebSocketPolicy policy, EndpointInstance endpointInstance, JsrEvents<?,?> events)
public void init(JsrSession jsrsession)
init in class AbstractJsrEventDriverpublic void onBinaryFrame(ByteBuffer buffer, boolean fin) throws IOException
onBinaryFrame in interface EventDriverIOExceptionpublic void onBinaryMessage(byte[] data)
MessageHandler.WholeonBinaryMessage in interface EventDriverprotected void onClose(javax.websocket.CloseReason closereason)
onClose in class AbstractJsrEventDriverpublic void onConnect()
onConnect in interface EventDriverpublic void onError(Throwable cause)
onError in interface EventDriverpublic void onFrame(Frame frame)
onFrame in interface EventDriveronFrame in class AbstractJsrEventDriverpublic void onInputStream(InputStream stream)
onInputStream in interface EventDriverpublic void onPartialBinaryMessage(ByteBuffer buffer, boolean fin)
public void onPartialTextMessage(String message, boolean fin)
public void onPong(ByteBuffer buffer)
onPong in interface EventDriveronPong in class AbstractEventDriverpublic void onReader(Reader reader)
onReader in interface EventDriverpublic void onTextFrame(ByteBuffer buffer, boolean fin) throws IOException
onTextFrame in interface EventDriverIOExceptionpublic void onTextMessage(String message)
onTextMessage in interface EventDriverpublic void setPathParameters(Map<String,String> pathParameters)
setPathParameters in class AbstractJsrEventDriverCopyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.