Class JsrEvents<T extends java.lang.annotation.Annotation,C extends javax.websocket.EndpointConfig>
- java.lang.Object
-
- org.eclipse.jetty.websocket.jsr356.annotations.JsrEvents<T,C>
-
- Type Parameters:
T- the annotation typeC- the endpoint config type
public class JsrEvents<T extends java.lang.annotation.Annotation,C extends javax.websocket.EndpointConfig> extends java.lang.ObjectThe live event methods found for a specific Annotated Endpoint
-
-
Field Summary
Fields Modifier and Type Field Description private static org.eclipse.jetty.util.log.LoggerLOGprivate AnnotatedEndpointMetadata<T,C>metadataprivate OnMessageBinaryCallableonBinaryCallable for @OnMessageannotation dealing with Binary Message Formatprivate OnMessageBinaryStreamCallableonBinaryStreamCallable for @OnMessageannotation dealing with Binary Streaming Message Formatprivate OnCloseCallableonCloseCallable for @OnCloseannotationprivate OnErrorCallableonErrorCallable for @OnErrorannotationprivate OnOpenCallableonOpenCallable for @OnOpenannotation.private OnMessagePongCallableonPongCallable for @OnMessageannotation dealing with Pong Message Formatprivate OnMessageTextCallableonTextCallable for @OnMessageannotation dealing with Text Message Formatprivate OnMessageTextStreamCallableonTextStreamCallable for @OnMessageannotation dealing with Text Streaming Message Formatprivate java.util.Map<java.lang.String,java.lang.String>pathParametersThe Request Parameters (from resolved javax.websocket.server.PathParam entries)
-
Constructor Summary
Constructors Constructor Description JsrEvents(AnnotatedEndpointMetadata<T,C> metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcallBinary(javax.websocket.RemoteEndpoint.Async endpoint, java.lang.Object websocket, java.nio.ByteBuffer buf, boolean fin)voidcallBinaryStream(javax.websocket.RemoteEndpoint.Async endpoint, java.lang.Object websocket, java.io.InputStream stream)voidcallClose(java.lang.Object websocket, javax.websocket.CloseReason close)voidcallError(java.lang.Object websocket, java.lang.Throwable cause)voidcallOpen(java.lang.Object websocket, javax.websocket.EndpointConfig config)voidcallPong(javax.websocket.RemoteEndpoint.Async endpoint, java.lang.Object websocket, java.nio.ByteBuffer pong)voidcallText(javax.websocket.RemoteEndpoint.Async endpoint, java.lang.Object websocket, java.lang.String text, boolean fin)voidcallTextStream(javax.websocket.RemoteEndpoint.Async endpoint, java.lang.Object websocket, java.io.Reader reader)AnnotatedEndpointMetadata<T,C>getMetadata()booleanhasBinary()booleanhasBinaryStream()booleanhasText()booleanhasTextStream()voidinit(JsrSession session)booleanisBinaryPartialSupported()booleanisTextPartialSupported()voidsetPathParameters(java.util.Map<java.lang.String,java.lang.String> pathParameters)
-
-
-
Field Detail
-
LOG
private static final org.eclipse.jetty.util.log.Logger LOG
-
metadata
private final AnnotatedEndpointMetadata<T extends java.lang.annotation.Annotation,C extends javax.websocket.EndpointConfig> metadata
-
onOpen
private final OnOpenCallable onOpen
Callable for @OnOpenannotation.
-
onClose
private final OnCloseCallable onClose
Callable for @OnCloseannotation
-
onError
private final OnErrorCallable onError
Callable for @OnErrorannotation
-
onText
private final OnMessageTextCallable onText
Callable for @OnMessageannotation dealing with Text Message Format
-
onTextStream
private final OnMessageTextStreamCallable onTextStream
Callable for @OnMessageannotation dealing with Text Streaming Message Format
-
onBinary
private final OnMessageBinaryCallable onBinary
Callable for @OnMessageannotation dealing with Binary Message Format
-
onBinaryStream
private final OnMessageBinaryStreamCallable onBinaryStream
Callable for @OnMessageannotation dealing with Binary Streaming Message Format
-
onPong
private OnMessagePongCallable onPong
Callable for @OnMessageannotation dealing with Pong Message Format
-
pathParameters
private java.util.Map<java.lang.String,java.lang.String> pathParameters
The Request Parameters (from resolved javax.websocket.server.PathParam entries)
-
-
Constructor Detail
-
JsrEvents
public JsrEvents(AnnotatedEndpointMetadata<T,C> metadata)
-
-
Method Detail
-
callBinary
public void callBinary(javax.websocket.RemoteEndpoint.Async endpoint, java.lang.Object websocket, java.nio.ByteBuffer buf, boolean fin) throws javax.websocket.DecodeException- Throws:
javax.websocket.DecodeException
-
callBinaryStream
public void callBinaryStream(javax.websocket.RemoteEndpoint.Async endpoint, java.lang.Object websocket, java.io.InputStream stream) throws javax.websocket.DecodeException, java.io.IOException- Throws:
javax.websocket.DecodeExceptionjava.io.IOException
-
callClose
public void callClose(java.lang.Object websocket, javax.websocket.CloseReason close)
-
callError
public void callError(java.lang.Object websocket, java.lang.Throwable cause)
-
callOpen
public void callOpen(java.lang.Object websocket, javax.websocket.EndpointConfig config)
-
callPong
public void callPong(javax.websocket.RemoteEndpoint.Async endpoint, java.lang.Object websocket, java.nio.ByteBuffer pong)
-
callText
public void callText(javax.websocket.RemoteEndpoint.Async endpoint, java.lang.Object websocket, java.lang.String text, boolean fin) throws javax.websocket.DecodeException- Throws:
javax.websocket.DecodeException
-
callTextStream
public void callTextStream(javax.websocket.RemoteEndpoint.Async endpoint, java.lang.Object websocket, java.io.Reader reader) throws javax.websocket.DecodeException, java.io.IOException- Throws:
javax.websocket.DecodeExceptionjava.io.IOException
-
getMetadata
public AnnotatedEndpointMetadata<T,C> getMetadata()
-
hasBinary
public boolean hasBinary()
-
hasBinaryStream
public boolean hasBinaryStream()
-
hasText
public boolean hasText()
-
hasTextStream
public boolean hasTextStream()
-
init
public void init(JsrSession session)
-
isBinaryPartialSupported
public boolean isBinaryPartialSupported()
-
isTextPartialSupported
public boolean isTextPartialSupported()
-
setPathParameters
public void setPathParameters(java.util.Map<java.lang.String,java.lang.String> pathParameters)
-
-