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.Loggerprivate final AnnotatedEndpointMetadata<T, C> private final OnMessageBinaryCallableCallable for @OnMessageannotation dealing with Binary Message Formatprivate final OnMessageBinaryStreamCallableCallable for @OnMessageannotation dealing with Binary Streaming Message Formatprivate final OnCloseCallableCallable for @OnCloseannotationprivate final OnErrorCallableCallable for @OnErrorannotationprivate final OnOpenCallableCallable for @OnOpenannotation.private OnMessagePongCallableCallable for @OnMessageannotation dealing with Pong Message Formatprivate final OnMessageTextCallableCallable for @OnMessageannotation dealing with Text Message Formatprivate final OnMessageTextStreamCallableCallable for @OnMessageannotation dealing with Text Streaming Message FormatThe Request Parameters (from resolved javax.websocket.server.PathParam entries) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcallBinary(javax.websocket.RemoteEndpoint.Async endpoint, Object websocket, ByteBuffer buf, boolean fin) voidcallBinaryStream(javax.websocket.RemoteEndpoint.Async endpoint, Object websocket, InputStream stream) voidvoidvoidvoidcallPong(javax.websocket.RemoteEndpoint.Async endpoint, Object websocket, ByteBuffer pong) voidvoidcallTextStream(javax.websocket.RemoteEndpoint.Async endpoint, Object websocket, Reader reader) booleanbooleanbooleanhasText()booleanvoidinit(JsrSession session) booleanbooleanvoidsetPathParameters(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 @OnOpenannotation. -
onClose
Callable for @OnCloseannotation -
onError
Callable for @OnErrorannotation -
onText
Callable for @OnMessageannotation dealing with Text Message Format -
onTextStream
Callable for @OnMessageannotation dealing with Text Streaming Message Format -
onBinary
Callable for @OnMessageannotation dealing with Binary Message Format -
onBinaryStream
Callable for @OnMessageannotation dealing with Binary Streaming Message Format -
onPong
Callable for @OnMessageannotation dealing with Pong Message Format -
pathParameters
-
-
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.DecodeExceptionIOException
-
callClose
-
callError
-
callOpen
-
callPong
public void callPong(javax.websocket.RemoteEndpoint.Async endpoint, Object websocket, ByteBuffer pong) -
callText
-
callTextStream
public void callTextStream(javax.websocket.RemoteEndpoint.Async endpoint, Object websocket, Reader reader) throws javax.websocket.DecodeException, IOException - Throws:
javax.websocket.DecodeExceptionIOException
-
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
-