public class JsrEvents<T extends Annotation,C extends EndpointConfig> extends Object
Constructor and Description |
---|
JsrEvents(AnnotatedEndpointMetadata<T,C> metadata) |
Modifier and Type | Method and Description |
---|---|
void |
callBinary(RemoteEndpoint.Async endpoint,
Object websocket,
ByteBuffer buf,
boolean fin) |
void |
callBinaryStream(RemoteEndpoint.Async endpoint,
Object websocket,
InputStream stream) |
void |
callClose(Object websocket,
CloseReason close) |
void |
callError(Object websocket,
Throwable cause) |
void |
callOpen(Object websocket,
EndpointConfig config) |
void |
callPong(RemoteEndpoint.Async endpoint,
Object websocket,
ByteBuffer pong) |
void |
callText(RemoteEndpoint.Async endpoint,
Object websocket,
String text,
boolean fin) |
void |
callTextStream(RemoteEndpoint.Async endpoint,
Object websocket,
Reader reader) |
AnnotatedEndpointMetadata<T,C> |
getMetadata() |
boolean |
hasBinary() |
boolean |
hasBinaryStream() |
boolean |
hasText() |
boolean |
hasTextStream() |
void |
init(JsrSession session) |
boolean |
isBinaryPartialSupported() |
boolean |
isTextPartialSupported() |
void |
setPathParameters(Map<String,String> pathParameters) |
public JsrEvents(AnnotatedEndpointMetadata<T,C> metadata)
public void callBinary(RemoteEndpoint.Async endpoint, Object websocket, ByteBuffer buf, boolean fin) throws DecodeException
DecodeException
public void callBinaryStream(RemoteEndpoint.Async endpoint, Object websocket, InputStream stream) throws DecodeException, IOException
DecodeException
IOException
public void callClose(Object websocket, CloseReason close)
public void callOpen(Object websocket, EndpointConfig config)
public void callPong(RemoteEndpoint.Async endpoint, Object websocket, ByteBuffer pong) throws DecodeException, IOException
DecodeException
IOException
public void callText(RemoteEndpoint.Async endpoint, Object websocket, String text, boolean fin) throws DecodeException
DecodeException
public void callTextStream(RemoteEndpoint.Async endpoint, Object websocket, Reader reader) throws DecodeException, IOException
DecodeException
IOException
public AnnotatedEndpointMetadata<T,C> getMetadata()
public boolean hasBinary()
public boolean hasBinaryStream()
public boolean hasText()
public boolean hasTextStream()
public void init(JsrSession session)
public boolean isBinaryPartialSupported()
public boolean isTextPartialSupported()
Copyright © 1995-2015 Webtide. All Rights Reserved.