public class AnnotatedEventDriver extends EventDriver
LOG, policy, session, websocket
Constructor and Description |
---|
AnnotatedEventDriver(WebSocketPolicy policy,
Object websocket,
EventMethods events) |
Modifier and Type | Method and Description |
---|---|
void |
onBinaryFrame(ByteBuffer buffer,
boolean fin) |
void |
onBinaryMessage(byte[] data) |
void |
onClose(CloseInfo close) |
void |
onConnect() |
void |
onException(WebSocketException e) |
void |
onFrame(WebSocketFrame frame) |
void |
onInputStream(InputStream stream) |
void |
onReader(Reader reader) |
void |
onTextFrame(ByteBuffer buffer,
boolean fin) |
void |
onTextMessage(String message) |
getPolicy, getSession, incoming, incoming, setSession, terminateConnection
public AnnotatedEventDriver(WebSocketPolicy policy, Object websocket, EventMethods events)
public void onBinaryFrame(ByteBuffer buffer, boolean fin) throws IOException
onBinaryFrame
in class EventDriver
IOException
public void onBinaryMessage(byte[] data)
onBinaryMessage
in class EventDriver
public void onClose(CloseInfo close)
onClose
in class EventDriver
public void onConnect()
onConnect
in class EventDriver
public void onException(WebSocketException e)
onException
in class EventDriver
public void onFrame(WebSocketFrame frame)
onFrame
in class EventDriver
public void onInputStream(InputStream stream)
public void onReader(Reader reader)
public void onTextFrame(ByteBuffer buffer, boolean fin) throws IOException
onTextFrame
in class EventDriver
IOException
public void onTextMessage(String message)
onTextMessage
in class EventDriver
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.