T - the annotation this metadata is based off ofC - the endpoint configuration this is based off ofpublic abstract class AnnotatedEndpointMetadata<T extends Annotation,C extends EndpointConfig> extends Object implements EndpointMetadata
| Modifier and Type | Field and Description |
|---|---|
OnMessageBinaryCallable |
onBinary
Callable for @
OnMessage annotation dealing with Binary Message Format |
OnMessageBinaryStreamCallable |
onBinaryStream
Callable for @
OnMessage annotation dealing with Binary Streaming Message Format |
OnCloseCallable |
onClose
Callable for @
OnClose annotation |
OnErrorCallable |
onError
Callable for @
OnError annotation |
OnOpenCallable |
onOpen
Callable for @
OnOpen annotation. |
OnMessagePongCallable |
onPong
Callable for @
OnMessage annotation dealing with Pong Message Format |
OnMessageTextCallable |
onText
Callable for @
OnMessage annotation dealing with Text Message Format |
OnMessageTextStreamCallable |
onTextStream
Callable for @
OnMessage annotation dealing with Text Streaming Message Format |
| Modifier | Constructor and Description |
|---|---|
protected |
AnnotatedEndpointMetadata(Class<?> endpointClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
customizeParamsOnClose(LinkedList<IJsrParamId> params) |
void |
customizeParamsOnError(LinkedList<IJsrParamId> params) |
void |
customizeParamsOnMessage(LinkedList<IJsrParamId> params) |
void |
customizeParamsOnOpen(LinkedList<IJsrParamId> params) |
abstract T |
getAnnotation() |
abstract C |
getConfig() |
DecoderMetadataSet |
getDecoders() |
EncoderMetadataSet |
getEncoders() |
Class<?> |
getEndpointClass() |
long |
maxBinaryMessageSize() |
long |
maxTextMessageSize() |
void |
setMaxBinaryMessageSize(long maxBinaryMessageSize) |
void |
setMaxTextMessageSize(long maxTextMessageSize) |
public OnOpenCallable onOpen
OnOpen annotation.public OnCloseCallable onClose
OnClose annotationpublic OnErrorCallable onError
OnError annotationpublic OnMessageTextCallable onText
OnMessage annotation dealing with Text Message Formatpublic OnMessageTextStreamCallable onTextStream
OnMessage annotation dealing with Text Streaming Message Formatpublic OnMessageBinaryCallable onBinary
OnMessage annotation dealing with Binary Message Formatpublic OnMessageBinaryStreamCallable onBinaryStream
OnMessage annotation dealing with Binary Streaming Message Formatpublic OnMessagePongCallable onPong
OnMessage annotation dealing with Pong Message Formatprotected AnnotatedEndpointMetadata(Class<?> endpointClass)
public void customizeParamsOnClose(LinkedList<IJsrParamId> params)
public void customizeParamsOnError(LinkedList<IJsrParamId> params)
public void customizeParamsOnMessage(LinkedList<IJsrParamId> params)
public void customizeParamsOnOpen(LinkedList<IJsrParamId> params)
public abstract T getAnnotation()
public abstract C getConfig()
public long maxBinaryMessageSize()
maxBinaryMessageSize in interface EndpointMetadatapublic long maxTextMessageSize()
maxTextMessageSize in interface EndpointMetadatapublic DecoderMetadataSet getDecoders()
getDecoders in interface EndpointMetadatapublic EncoderMetadataSet getEncoders()
getEncoders in interface EndpointMetadatapublic Class<?> getEndpointClass()
getEndpointClass in interface EndpointMetadatapublic void setMaxBinaryMessageSize(long maxBinaryMessageSize)
public void setMaxTextMessageSize(long maxTextMessageSize)
Copyright © 1995–2017 Webtide. All rights reserved.