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 OnMessageBinaryCallableonBinaryCallable for @OnMessageannotation dealing with Binary Message FormatOnMessageBinaryStreamCallableonBinaryStreamCallable for @OnMessageannotation dealing with Binary Streaming Message FormatOnCloseCallableonCloseCallable for @OnCloseannotationOnErrorCallableonErrorCallable for @OnErrorannotationOnOpenCallableonOpenCallable for @OnOpenannotation.OnMessagePongCallableonPongCallable for @OnMessageannotation dealing with Pong Message FormatOnMessageTextCallableonTextCallable for @OnMessageannotation dealing with Text Message FormatOnMessageTextStreamCallableonTextStreamCallable for @OnMessageannotation dealing with Text Streaming Message Format
-
Constructor Summary
Constructors Modifier Constructor Description protectedAnnotatedEndpointMetadata(java.lang.Class<?> endpointClass)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcustomizeParamsOnClose(java.util.LinkedList<IJsrParamId> params)voidcustomizeParamsOnError(java.util.LinkedList<IJsrParamId> params)voidcustomizeParamsOnMessage(java.util.LinkedList<IJsrParamId> params)voidcustomizeParamsOnOpen(java.util.LinkedList<IJsrParamId> params)abstract TgetAnnotation()abstract CgetConfig()DecoderMetadataSetgetDecoders()EncoderMetadataSetgetEncoders()java.lang.Class<?>getEndpointClass()longmaxBinaryMessageSize()longmaxTextMessageSize()voidsetMaxBinaryMessageSize(long maxBinaryMessageSize)voidsetMaxTextMessageSize(long maxTextMessageSize)
-
-
-
Field Detail
-
onOpen
public OnOpenCallable onOpen
Callable for @OnOpenannotation.
-
onClose
public OnCloseCallable onClose
Callable for @OnCloseannotation
-
onError
public OnErrorCallable onError
Callable for @OnErrorannotation
-
onText
public OnMessageTextCallable onText
Callable for @OnMessageannotation dealing with Text Message Format
-
onTextStream
public OnMessageTextStreamCallable onTextStream
Callable for @OnMessageannotation dealing with Text Streaming Message Format
-
onBinary
public OnMessageBinaryCallable onBinary
Callable for @OnMessageannotation dealing with Binary Message Format
-
onBinaryStream
public OnMessageBinaryStreamCallable onBinaryStream
Callable for @OnMessageannotation dealing with Binary Streaming Message Format
-
onPong
public OnMessagePongCallable onPong
Callable for @OnMessageannotation 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:
maxBinaryMessageSizein interfaceEndpointMetadata
-
maxTextMessageSize
public long maxTextMessageSize()
- Specified by:
maxTextMessageSizein interfaceEndpointMetadata
-
getDecoders
public DecoderMetadataSet getDecoders()
- Specified by:
getDecodersin interfaceEndpointMetadata
-
getEncoders
public EncoderMetadataSet getEncoders()
- Specified by:
getEncodersin interfaceEndpointMetadata
-
getEndpointClass
public java.lang.Class<?> getEndpointClass()
- Specified by:
getEndpointClassin interfaceEndpointMetadata
-
setMaxBinaryMessageSize
public void setMaxBinaryMessageSize(long maxBinaryMessageSize)
-
setMaxTextMessageSize
public void setMaxTextMessageSize(long maxTextMessageSize)
-
-