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
DecodeExceptionpublic void callBinaryStream(RemoteEndpoint.Async endpoint, Object websocket, InputStream stream) throws DecodeException, IOException
DecodeExceptionIOExceptionpublic 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
DecodeExceptionIOExceptionpublic void callText(RemoteEndpoint.Async endpoint, Object websocket, String text, boolean fin) throws DecodeException
DecodeExceptionpublic void callTextStream(RemoteEndpoint.Async endpoint, Object websocket, Reader reader) throws DecodeException, IOException
DecodeExceptionIOExceptionpublic 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.