Class AnnotatedEndpointMetadata<T extends java.lang.annotation.Annotation,C extends javax.websocket.EndpointConfig>
- java.lang.Object
-
- org.eclipse.jetty.websocket.jsr356.annotations.AnnotatedEndpointMetadata<T,C>
-
- Type Parameters:
T
- the annotation this metadata is based off ofC
- the endpoint configuration this is based off of
- All Implemented Interfaces:
EndpointMetadata
- Direct Known Subclasses:
AnnotatedClientEndpointMetadata
,AnnotatedServerEndpointMetadata
public abstract class AnnotatedEndpointMetadata<T extends java.lang.annotation.Annotation,C extends javax.websocket.EndpointConfig> extends java.lang.Object implements EndpointMetadata
Static reference to a specific annotated classes metadata.
-
-
Field Summary
Fields Modifier and Type Field Description OnMessageBinaryCallable
onBinary
Callable for @OnMessage
annotation dealing with Binary Message FormatOnMessageBinaryStreamCallable
onBinaryStream
Callable for @OnMessage
annotation dealing with Binary Streaming Message FormatOnCloseCallable
onClose
Callable for @OnClose
annotationOnErrorCallable
onError
Callable for @OnError
annotationOnOpenCallable
onOpen
Callable for @OnOpen
annotation.OnMessagePongCallable
onPong
Callable for @OnMessage
annotation dealing with Pong Message FormatOnMessageTextCallable
onText
Callable for @OnMessage
annotation dealing with Text Message FormatOnMessageTextStreamCallable
onTextStream
Callable for @OnMessage
annotation dealing with Text Streaming Message Format
-
Constructor Summary
Constructors Modifier Constructor Description protected
AnnotatedEndpointMetadata(java.lang.Class<?> endpointClass)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
customizeParamsOnClose(java.util.LinkedList<IJsrParamId> params)
void
customizeParamsOnError(java.util.LinkedList<IJsrParamId> params)
void
customizeParamsOnMessage(java.util.LinkedList<IJsrParamId> params)
void
customizeParamsOnOpen(java.util.LinkedList<IJsrParamId> params)
abstract T
getAnnotation()
abstract C
getConfig()
DecoderMetadataSet
getDecoders()
EncoderMetadataSet
getEncoders()
java.lang.Class<?>
getEndpointClass()
long
maxBinaryMessageSize()
long
maxTextMessageSize()
void
setMaxBinaryMessageSize(long maxBinaryMessageSize)
void
setMaxTextMessageSize(long maxTextMessageSize)
-
-
-
Field Detail
-
onOpen
public OnOpenCallable onOpen
Callable for @OnOpen
annotation.
-
onClose
public OnCloseCallable onClose
Callable for @OnClose
annotation
-
onError
public OnErrorCallable onError
Callable for @OnError
annotation
-
onText
public OnMessageTextCallable onText
Callable for @OnMessage
annotation dealing with Text Message Format
-
onTextStream
public OnMessageTextStreamCallable onTextStream
Callable for @OnMessage
annotation dealing with Text Streaming Message Format
-
onBinary
public OnMessageBinaryCallable onBinary
Callable for @OnMessage
annotation dealing with Binary Message Format
-
onBinaryStream
public OnMessageBinaryStreamCallable onBinaryStream
Callable for @OnMessage
annotation dealing with Binary Streaming Message Format
-
onPong
public OnMessagePongCallable onPong
Callable for @OnMessage
annotation dealing with Pong Message Format
-
-
Method Detail
-
customizeParamsOnClose
public void customizeParamsOnClose(java.util.LinkedList<IJsrParamId> params)
-
customizeParamsOnError
public void customizeParamsOnError(java.util.LinkedList<IJsrParamId> params)
-
customizeParamsOnMessage
public void customizeParamsOnMessage(java.util.LinkedList<IJsrParamId> params)
-
customizeParamsOnOpen
public void customizeParamsOnOpen(java.util.LinkedList<IJsrParamId> params)
-
getAnnotation
public abstract T getAnnotation()
-
getConfig
public abstract C getConfig()
-
maxBinaryMessageSize
public long maxBinaryMessageSize()
- Specified by:
maxBinaryMessageSize
in interfaceEndpointMetadata
-
maxTextMessageSize
public long maxTextMessageSize()
- Specified by:
maxTextMessageSize
in interfaceEndpointMetadata
-
getDecoders
public DecoderMetadataSet getDecoders()
- Specified by:
getDecoders
in interfaceEndpointMetadata
-
getEncoders
public EncoderMetadataSet getEncoders()
- Specified by:
getEncoders
in interfaceEndpointMetadata
-
getEndpointClass
public java.lang.Class<?> getEndpointClass()
- Specified by:
getEndpointClass
in interfaceEndpointMetadata
-
setMaxBinaryMessageSize
public void setMaxBinaryMessageSize(long maxBinaryMessageSize)
-
setMaxTextMessageSize
public void setMaxTextMessageSize(long maxTextMessageSize)
-
-