Endpoint descendant which represents deployed annotated endpoint.
| Modifier and Type | Class and Description |
|---|---|
| private abstract class | |
| pack-priv static interface | |
| pack-priv static class | |
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private final Object | |
| private final ComponentProviderService | |
| private final EndpointConfig | |
| private final EndpointEventListener | |
| private static final Logger | |
| private final Set | |
| private final Method | |
| private final AnnotatedEndpoint. | |
| private final Method | |
| private final AnnotatedEndpoint. | |
| private final Method | |
| private final AnnotatedEndpoint. |
| Access | Constructor and Description |
|---|---|
| private | AnnotatedEndpoint(Class<?> annotatedClass, Object instance, ComponentProviderService componentProvider, Boolean isServerEndpoint, int incomingBufferSize, ErrorCollector collector, EndpointEventListener endpointEventListener, Set<Extension> extensions)
|
| Modifier and Type | Method and Description |
|---|---|
| private Object | callMethod(Method method, AnnotatedEndpoint.
|
| private EndpointConfig | createEndpointConfig(Class<?> annotatedClass, boolean isServerEndpoint, ErrorCollector collector, Set<Extension> extensions)
|
| public static AnnotatedEndpoint | Returns: new instance.annotated class. annotatedClass, ComponentProviderService used for instantiating. componentProvider, boolean true iff annotated endpoint is deployed on server side.size limit of the incoming buffer. incomingBufferSize, ErrorCollector error collector. collector, EndpointEventListener listener of monitored endpoint events. endpointEventListener)Create |
| public static AnnotatedEndpoint | Returns: new instance.annotated class. annotatedClass, ComponentProviderService used for instantiating. componentProvider, boolean true iff annotated endpoint is deployed on server side.size limit of the incoming buffer. incomingBufferSize, ErrorCollector error collector. collector, EndpointEventListener listener of monitored endpoint events. endpointEventListener, Set<Extension> installed extentions. extensions)Create |
| public static AnnotatedEndpoint | Returns: new instance.annotated instance. annotatedInstance, ComponentProviderService used for instantiating. componentProvider, boolean true iff annotated endpoint is deployed on server side.size limit of the incoming buffer incomingBufferSize, ErrorCollector error collector. collector)Create |
| public static AnnotatedEndpoint | Returns: new instance.annotated instance. annotatedInstance, ComponentProviderService used for instantiating. componentProvider, boolean true iff annotated endpoint is deployed on server side.size limit of the incoming buffer incomingBufferSize, ErrorCollector error collector. collector, Set<Extension> installed extentions. extensions)Create |
| pack-priv static Class | |
| pack-priv static Class | |
| public EndpointConfig | |
| private AnnotatedEndpoint. | getOnCloseParameterExtractors(final Method method, Map<Integer, Class<?>> unknownParams, ErrorCollector collector)
|
| private AnnotatedEndpoint. | getParameterExtractors(final Method method, Map<Integer, Class<?>> unknownParams, ErrorCollector collector)
|
| private AnnotatedEndpoint. | getParameterExtractors(final Method method, Map<Integer, Class<?>> unknownParams, Set<Class<?>> params, ErrorCollector collector)
|
| private String | |
| pack-priv void | |
| public void | onClose(Session
the session about to be closed. session, CloseReason the reason the session was closed. closeReason)Overrides jakarta. This method is called immediately prior to the session with the remote peer being closed. |
| public void | onError(Session
the session in use when the error occurs. session, Throwable the throwable representing the problem. thr)Overrides jakarta. Developers may implement this method when the web socket session creates some kind of error that is not modeled in the web socket protocol. |
| public void | onOpen(Session
the session that has just been activated. session, EndpointConfig the configuration used to configure this endpoint. configuration)Implements abstract jakarta. Developers must implement this method to be notified when a new conversation has just begun. |
| annotatedClass | back to summary |
|---|---|
| private final Class<?> annotatedClass | |
| annotatedInstance | back to summary |
|---|---|
| private final Object annotatedInstance | |
| componentProvider | back to summary |
|---|---|
| private final ComponentProviderService componentProvider | |
| configuration | back to summary |
|---|---|
| private final EndpointConfig configuration | |
| endpointEventListener | back to summary |
|---|---|
| private final EndpointEventListener endpointEventListener | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| messageHandlerFactories | back to summary |
|---|---|
| private final Set<AnnotatedEndpoint. | |
| onCloseMethod | back to summary |
|---|---|
| private final Method onCloseMethod | |
| onCloseParameters | back to summary |
|---|---|
| private final AnnotatedEndpoint. | |
| onErrorMethod | back to summary |
|---|---|
| private final Method onErrorMethod | |
| onErrorParameters | back to summary |
|---|---|
| private final AnnotatedEndpoint. | |
| onOpenMethod | back to summary |
|---|---|
| private final Method onOpenMethod | |
| onOpenParameters | back to summary |
|---|---|
| private final AnnotatedEndpoint. | |
| AnnotatedEndpoint | back to summary |
|---|---|
| private AnnotatedEndpoint(Class<?> annotatedClass, Object instance, ComponentProviderService componentProvider, Boolean isServerEndpoint, int incomingBufferSize, ErrorCollector collector, EndpointEventListener endpointEventListener, Set<Extension> extensions) | |
| callMethod | back to summary |
|---|---|
| private Object callMethod(Method method, AnnotatedEndpoint. | |
| createEndpointConfig | back to summary |
|---|---|
| private EndpointConfig createEndpointConfig(Class<?> annotatedClass, boolean isServerEndpoint, ErrorCollector collector, Set<Extension> extensions) | |
| fromClass | back to summary |
|---|---|
| public static AnnotatedEndpoint fromClass(Class<?> annotatedClass, ComponentProviderService componentProvider, boolean isServerEndpoint, int incomingBufferSize, ErrorCollector collector, EndpointEventListener endpointEventListener) Create
| |
| fromClass | back to summary |
|---|---|
| public static AnnotatedEndpoint fromClass(Class<?> annotatedClass, ComponentProviderService componentProvider, boolean isServerEndpoint, int incomingBufferSize, ErrorCollector collector, EndpointEventListener endpointEventListener, Set<Extension> extensions) Create
| |
| fromInstance | back to summary |
|---|---|
| public static AnnotatedEndpoint fromInstance(Object annotatedInstance, ComponentProviderService componentProvider, boolean isServerEndpoint, int incomingBufferSize, ErrorCollector collector) Create
| |
| fromInstance | back to summary |
|---|---|
| public static AnnotatedEndpoint fromInstance(Object annotatedInstance, ComponentProviderService componentProvider, boolean isServerEndpoint, int incomingBufferSize, ErrorCollector collector, Set<Extension> extensions) Create
| |
| getDecoderClassType | back to summary |
|---|---|
| pack-priv static Class | |
| getEncoderClassType | back to summary |
|---|---|
| pack-priv static Class | |
| getEndpointConfig | back to summary |
|---|---|
| public EndpointConfig getEndpointConfig() | |
| getOnCloseParameterExtractors | back to summary |
|---|---|
| private AnnotatedEndpoint. | |
| getParameterExtractors | back to summary |
|---|---|
| private AnnotatedEndpoint. | |
| getParameterExtractors | back to summary |
|---|---|
| private AnnotatedEndpoint. | |
| getPathParamName | back to summary |
|---|---|
| private String getPathParamName(Annotation[] annotations) | |
| onClose | back to summary |
|---|---|
| pack-priv void onClose(CloseReason closeReason, Session session) | |
| onClose | back to summary |
|---|---|
| public void onClose(Session session, CloseReason closeReason) Overrides jakarta. Doc from jakarta. This method is called immediately prior to the session with the remote peer being closed. It is called whether the session is being closed because the remote peer initiated a close and sent a close frame, or whether the local websocket container or this endpoint requests to close the session. The developer may take this last opportunity to retrieve session attributes such as the ID, or any application data it holds before it becomes unavailable after the completion of the method. Developers should not attempt to modify the session from within this method, or send new messages from this call as the underlying connection will not be able to send them at this stage.
| |
| onError | back to summary |
|---|---|
| public void onError(Session session, Throwable thr) Overrides jakarta. Doc from jakarta. Developers may implement this method when the web socket session creates some kind of error that is not modeled in the web socket protocol. This may for example be a notification that an incoming message is too big to handle, or that the incoming message could not be encoded. There are a number of categories of exception that this method is (currently) defined to handle:
| |
| onOpen | back to summary |
|---|---|
| public void onOpen(Session session, EndpointConfig configuration) Implements abstract jakarta. Doc from jakarta. Developers must implement this method to be notified when a new conversation has just begun. Note:
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final AnnotatedEndpoint. | |
| pack-priv final long | |
| pack-priv final Method | |
| pack-priv final Class |
| Access | Constructor and Description |
|---|---|
| pack-priv | MessageHandlerFactory(Method method, AnnotatedEndpoint.
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract MessageHandler |
| extractors | back to summary |
|---|---|
| pack-priv final AnnotatedEndpoint. | |
| maxMessageSize | back to summary |
|---|---|
| pack-priv final long maxMessageSize | |
| method | back to summary |
|---|---|
| pack-priv final Method method | |
| type | back to summary |
|---|---|
| pack-priv final Class<?> type | |
| MessageHandlerFactory | back to summary |
|---|---|
| pack-priv MessageHandlerFactory(Method method, AnnotatedEndpoint. | |
| create | back to summary |
|---|---|
| pack-priv abstract MessageHandler create(Session session) | |
| Modifier and Type | Method and Description |
|---|---|
| public Object |
| value | back to summary |
|---|---|
| public Object value(Session session, Object... paramValues) throws DecodeException | |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Object | value(Session session, Object... paramValues)
Implements org.
|
| index | back to summary |
|---|---|
| private final int index | |
| ParamValue | back to summary |
|---|---|
| pack-priv ParamValue(int index) | |
| value | back to summary |
|---|---|
| public Object value(Session session, Object... paramValues) Implements org.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv | PartialHandler(Method method, AnnotatedEndpoint.
|
| Modifier and Type | Method and Description |
|---|---|
| public MessageHandler | create(final Session session)
Implements abstract org.
|
| PartialHandler | back to summary |
|---|---|
| pack-priv PartialHandler(Method method, AnnotatedEndpoint. | |
| create | back to summary |
|---|---|
| public MessageHandler create(final Session session) Implements abstract org.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv | WholeHandler(Method method, AnnotatedEndpoint.
|
| Modifier and Type | Method and Description |
|---|---|
| public MessageHandler | create(final Session session)
Implements abstract org.
|
| WholeHandler | back to summary |
|---|---|
| pack-priv WholeHandler(Method method, AnnotatedEndpoint. | |
| create | back to summary |
|---|---|
| public MessageHandler create(final Session session) Implements abstract org.
| |