| Modifier and Type | Field and Description |
|---|---|
| private MessageSink | |
| private JakartaWebSocketMessageMetadata | |
| private MessageSink | |
| private MethodHandle | |
| private final AtomicBoolean | |
| private final JakartaWebSocketContainer | |
| private CoreSession | |
| protected byte | |
| private EndpointConfig | |
| private final Object | |
| private MethodHandle | |
| private final AutoLock | |
| private final Logger | |
| private final Map | |
| private MethodHandle | |
| private MethodHandle | |
| private JakartaWebSocketSession | |
| private JakartaWebSocketMessageMetadata | |
| private MessageSink | |
| private final UpgradeRequest |
| Access | Constructor and Description |
|---|---|
| public | JakartaWebSocketFrameHandler(JakartaWebSocketContainer container, UpgradeRequest upgradeRequest, Object endpointInstance, MethodHandle openHandle, MethodHandle closeHandle, MethodHandle errorHandle, JakartaWebSocketMessageMetadata textMetadata, JakartaWebSocketMessageMetadata binaryMetadata, MethodHandle pongHandle, EndpointConfig endpointConfig)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public <T> void | |
| public <T> void | |
| private void | |
| private void | |
| public JakartaWebSocketMessageMetadata | |
| public Object | |
| public EndpointConfig | |
| public Map | |
| public Set | |
| public JakartaWebSocketSession | |
| public JakartaWebSocketMessageMetadata | |
| public UpgradeRequest | |
| private EndpointConfig | |
| private void | |
| public void | |
| public void | |
| public void | onClosed(CloseStatus
the close status received from the remote peer,
or generated locally in the case of abnormal closures. closeStatus, Callback the callback to indicate success or failure of
the processing of this event. callback)Implements org. Invoked when a WebSocket close event happened. |
| public void | |
| public void | onError(Throwable
the error cause cause, Callback the callback to indicate success or failure of
the processing of this event. callback)Implements org. Invoked when an error has occurred or has been detected. |
| public void | onFrame(Frame
the WebSocket frame. frame, Callback the callback to indicate success or failure of
the processing of this event. callback)Implements org. Invoked when a WebSocket frame is received. |
| public void | onOpen(CoreSession
the session associated with this connection. coreSession, Callback the callback to indicate success or failure of
the processing of this event. callback)Implements org. Invoked when the WebSocket connection is opened. |
| public void | |
| public void | |
| public void | |
| private void | registerMessageHandler(Class<?> clazz, MessageHandler handler, byte basicMessageType, JakartaWebSocketMessageMetadata metadata)
|
| private <T> MessageSink | registerMessageHandler(byte basicWebSocketMessageType, Class<T> handlerType, MessageHandler handler, MessageSink messageSink)
|
| public void | |
| public String |
| activeMessageSink | back to summary |
|---|---|
| private MessageSink activeMessageSink | |
| binaryMetadata | back to summary |
|---|---|
| private JakartaWebSocketMessageMetadata binaryMetadata | |
| binarySink | back to summary |
|---|---|
| private MessageSink binarySink | |
| closeHandle | back to summary |
|---|---|
| private MethodHandle closeHandle | |
| closeNotified | back to summary |
|---|---|
| private final AtomicBoolean closeNotified | |
| container | back to summary |
|---|---|
| private final JakartaWebSocketContainer container | |
| coreSession | back to summary |
|---|---|
| private CoreSession coreSession | |
| dataType | back to summary |
|---|---|
| protected byte dataType | |
| endpointConfig | back to summary |
|---|---|
| private EndpointConfig endpointConfig | |
| endpointInstance | back to summary |
|---|---|
| private final Object endpointInstance | |
| errorHandle | back to summary |
|---|---|
| private MethodHandle errorHandle | |
| lock | back to summary |
|---|---|
| private final AutoLock lock | |
| logger | back to summary |
|---|---|
| private final Logger logger | |
| messageHandlerMap | back to summary |
|---|---|
| private final Map<Byte, RegisteredMessageHandler> messageHandlerMap | |
| openHandle | back to summary |
|---|---|
| private MethodHandle openHandle | |
| pongHandle | back to summary |
|---|---|
| private MethodHandle pongHandle | |
| session | back to summary |
|---|---|
| private JakartaWebSocketSession session | |
| textMetadata | back to summary |
|---|---|
| private JakartaWebSocketMessageMetadata textMetadata | |
| textSink | back to summary |
|---|---|
| private MessageSink textSink | |
| upgradeRequest | back to summary |
|---|---|
| private final UpgradeRequest upgradeRequest | |
| JakartaWebSocketFrameHandler | back to summary |
|---|---|
| public JakartaWebSocketFrameHandler(JakartaWebSocketContainer container, UpgradeRequest upgradeRequest, Object endpointInstance, MethodHandle openHandle, MethodHandle closeHandle, MethodHandle errorHandle, JakartaWebSocketMessageMetadata textMetadata, JakartaWebSocketMessageMetadata binaryMetadata, MethodHandle pongHandle, EndpointConfig endpointConfig) | |
| acceptMessage | back to summary |
|---|---|
| private void acceptMessage(Frame frame, Callback callback) | |
| addMessageHandler | back to summary |
|---|---|
| public <T> void addMessageHandler(Class<T> clazz, MessageHandler. | |
| addMessageHandler | back to summary |
|---|---|
| public <T> void addMessageHandler(Class<T> clazz, MessageHandler. | |
| assertBasicTypeNotRegistered | back to summary |
|---|---|
| private void assertBasicTypeNotRegistered(byte basicWebSocketType, MessageHandler replacement) | |
| configListener | back to summary |
|---|---|
| private void configListener(String key, Object value) | |
| getBinaryMetadata | back to summary |
|---|---|
| public JakartaWebSocketMessageMetadata getBinaryMetadata() | |
| getEndpoint | back to summary |
|---|---|
| public Object getEndpoint() | |
| getEndpointConfig | back to summary |
|---|---|
| public EndpointConfig getEndpointConfig() | |
| getMessageHandlerMap | back to summary |
|---|---|
| public Map | |
| getMessageHandlers | back to summary |
|---|---|
| public Set | |
| getSession | back to summary |
|---|---|
| public JakartaWebSocketSession getSession() | |
| getTextMetadata | back to summary |
|---|---|
| public JakartaWebSocketMessageMetadata getTextMetadata() | |
| getUpgradeRequest | back to summary |
|---|---|
| public UpgradeRequest getUpgradeRequest() | |
| getWrappedEndpointConfig | back to summary |
|---|---|
| private EndpointConfig getWrappedEndpointConfig() | |
| notifyOnClose | back to summary |
|---|---|
| private void notifyOnClose(CloseStatus closeStatus, Callback callback) | |
| onBinary | back to summary |
|---|---|
| public void onBinary(Frame frame, Callback callback) | |
| onClose | back to summary |
|---|---|
| public void onClose(Frame frame, Callback callback) | |
| onClosed | back to summary |
|---|---|
| public void onClosed(CloseStatus closeStatus, Callback callback) Implements org. Doc from org. Invoked when a WebSocket close event happened. The WebSocket connection is closed, no reading or writing is possible anymore. Implementations of this method may cleanup resources that have been allocated. This method will not be called more than once.
| |
| onContinuation | back to summary |
|---|---|
| public void onContinuation(Frame frame, Callback callback) | |
| onError | back to summary |
|---|---|
| public void onError(Throwable cause, Callback callback) Implements org. Doc from org. Invoked when an error has occurred or has been detected. A call to this method will be followed by a call to
This method will not be called more than once, | |
| onFrame | back to summary |
|---|---|
| public void onFrame(Frame frame, Callback callback) Implements org. Doc from org. Invoked when a WebSocket frame is received. This method will never be called concurrently for the
same session; will be called sequentially to satisfy the
outstanding demand signaled by calls to
Both control and data frames are passed to this method. CLOSE frames may be responded from this method, but if they are not responded, then the implementation will respond when the callback is completed. The callback argument must be completed to indicate that the buffers associated with the frame can be recycled. Additional WebSocket frames (of any type, including CLOSE
frames) cannot be received until a call to
| |
| onOpen | back to summary |
|---|---|
| public void onOpen(CoreSession coreSession, Callback callback) Implements org. Doc from org. Invoked when the WebSocket connection is opened. It is allowed to send WebSocket frames via
WebSocket frames cannot be received until a call to
If the callback argument is failed, the implementation
sends a CLOSE frame with
| |
| onPing | back to summary |
|---|---|
| public void onPing(Frame frame, Callback callback) | |
| onPong | back to summary |
|---|---|
| public void onPong(Frame frame, Callback callback) | |
| onText | back to summary |
|---|---|
| public void onText(Frame frame, Callback callback) | |
| registerMessageHandler | back to summary |
|---|---|
| private void registerMessageHandler(Class<?> clazz, MessageHandler handler, byte basicMessageType, JakartaWebSocketMessageMetadata metadata) | |
| registerMessageHandler | back to summary |
|---|---|
| private <T> MessageSink registerMessageHandler(byte basicWebSocketMessageType, Class<T> handlerType, MessageHandler handler, MessageSink messageSink) | |
| removeMessageHandler | back to summary |
|---|---|
| public void removeMessageHandler(MessageHandler handler) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |