Class JsrEvents<T extends 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 Annotation,C extends javax.websocket.EndpointConfig>
extends Object
The live event methods found for a specific Annotated Endpoint
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.eclipse.jetty.util.log.Logger
private final AnnotatedEndpointMetadata<T,
C> private final OnMessageBinaryCallable
Callable for @OnMessage
annotation dealing with Binary Message Formatprivate final OnMessageBinaryStreamCallable
Callable for @OnMessage
annotation dealing with Binary Streaming Message Formatprivate final OnCloseCallable
Callable for @OnClose
annotationprivate final OnErrorCallable
Callable for @OnError
annotationprivate final OnOpenCallable
Callable for @OnOpen
annotation.private OnMessagePongCallable
Callable for @OnMessage
annotation dealing with Pong Message Formatprivate final OnMessageTextCallable
Callable for @OnMessage
annotation dealing with Text Message Formatprivate final OnMessageTextStreamCallable
Callable for @OnMessage
annotation dealing with Text Streaming Message FormatThe Request Parameters (from resolved javax.websocket.server.PathParam entries) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
callBinary
(javax.websocket.RemoteEndpoint.Async endpoint, Object websocket, ByteBuffer buf, boolean fin) void
callBinaryStream
(javax.websocket.RemoteEndpoint.Async endpoint, Object websocket, InputStream stream) void
void
void
void
callPong
(javax.websocket.RemoteEndpoint.Async endpoint, Object websocket, ByteBuffer pong) void
void
callTextStream
(javax.websocket.RemoteEndpoint.Async endpoint, Object websocket, Reader reader) boolean
boolean
boolean
hasText()
boolean
void
init
(JsrSession session) boolean
boolean
void
setPathParameters
(Map<String, String> pathParameters)
-
Field Details
-
LOG
private static final org.eclipse.jetty.util.log.Logger LOG -
metadata
private final AnnotatedEndpointMetadata<T extends Annotation,C extends javax.websocket.EndpointConfig> metadata -
onOpen
Callable for @OnOpen
annotation. -
onClose
Callable for @OnClose
annotation -
onError
Callable for @OnError
annotation -
onText
Callable for @OnMessage
annotation dealing with Text Message Format -
onTextStream
Callable for @OnMessage
annotation dealing with Text Streaming Message Format -
onBinary
Callable for @OnMessage
annotation dealing with Binary Message Format -
onBinaryStream
Callable for @OnMessage
annotation dealing with Binary Streaming Message Format -
onPong
Callable for @OnMessage
annotation dealing with Pong Message Format -
pathParameters
The Request Parameters (from resolved javax.websocket.server.PathParam entries)
-
-
Constructor Details
-
JsrEvents
-
-
Method Details
-
callBinary
public void callBinary(javax.websocket.RemoteEndpoint.Async endpoint, Object websocket, ByteBuffer buf, boolean fin) throws javax.websocket.DecodeException - Throws:
javax.websocket.DecodeException
-
callBinaryStream
public void callBinaryStream(javax.websocket.RemoteEndpoint.Async endpoint, Object websocket, InputStream stream) throws javax.websocket.DecodeException, IOException - Throws:
javax.websocket.DecodeException
IOException
-
callClose
-
callError
-
callOpen
-
callPong
public void callPong(javax.websocket.RemoteEndpoint.Async endpoint, Object websocket, ByteBuffer pong) -
callText
public void callText(javax.websocket.RemoteEndpoint.Async endpoint, Object websocket, String text, boolean fin) throws javax.websocket.DecodeException - Throws:
javax.websocket.DecodeException
-
callTextStream
public void callTextStream(javax.websocket.RemoteEndpoint.Async endpoint, Object websocket, Reader reader) throws javax.websocket.DecodeException, IOException - Throws:
javax.websocket.DecodeException
IOException
-
getMetadata
-
hasBinary
public boolean hasBinary() -
hasBinaryStream
public boolean hasBinaryStream() -
hasText
public boolean hasText() -
hasTextStream
public boolean hasTextStream() -
init
-
isBinaryPartialSupported
public boolean isBinaryPartialSupported() -
isTextPartialSupported
public boolean isTextPartialSupported() -
setPathParameters
-