Class AnnotatedEndpointMetadata<T extends java.lang.annotation.Annotation,​C extends javax.websocket.EndpointConfig>

  • Type Parameters:
    T - the annotation this metadata is based off of
    C - 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 Detail

      • onOpen

        public OnOpenCallable onOpen
        Callable for @OnOpen 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
      • endpointClass

        private final java.lang.Class<?> endpointClass
      • maxTextMessageSize

        private long maxTextMessageSize
      • maxBinaryMessageSize

        private long maxBinaryMessageSize
    • Constructor Detail

      • AnnotatedEndpointMetadata

        protected AnnotatedEndpointMetadata​(java.lang.Class<?> endpointClass)
    • 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()
      • setMaxBinaryMessageSize

        public void setMaxBinaryMessageSize​(long maxBinaryMessageSize)
      • setMaxTextMessageSize

        public void setMaxTextMessageSize​(long maxTextMessageSize)