Class JakartaWebSocketServerFrameHandlerFactory
java.lang.Object
org.eclipse.jetty.websocket.jakarta.common.JakartaWebSocketFrameHandlerFactory
org.eclipse.jetty.websocket.jakarta.client.internal.JakartaWebSocketClientFrameHandlerFactory
org.eclipse.jetty.websocket.jakarta.server.internal.JakartaWebSocketServerFrameHandlerFactory
- All Implemented Interfaces:
FrameHandlerFactory
public class JakartaWebSocketServerFrameHandlerFactory
extends JakartaWebSocketClientFrameHandlerFactory
implements FrameHandlerFactory
-
Field Summary
Fields inherited from class org.eclipse.jetty.websocket.jakarta.common.JakartaWebSocketFrameHandlerFactory
components, container, paramIdentifier
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetMetadata
(Class<?> endpointClass, jakarta.websocket.EndpointConfig endpointConfig) newFrameHandler
(Object websocketPojo, ServerUpgradeRequest upgradeRequest, ServerUpgradeResponse upgradeResponse) Create a FrameHandler from the provided websocketPojo.Methods inherited from class org.eclipse.jetty.websocket.jakarta.client.internal.JakartaWebSocketClientFrameHandlerFactory
newDefaultEndpointConfig
Methods inherited from class org.eclipse.jetty.websocket.jakarta.common.JakartaWebSocketFrameHandlerFactory
bindTemplateVariables, createEndpointMetadata, createMessageSink, discoverJakartaFrameHandlerMetadata, getApplicationMethodHandleLookup, getServerMethodHandleLookup, newJakartaWebSocketFrameHandler, wrapNonVoidReturnType
-
Constructor Details
-
JakartaWebSocketServerFrameHandlerFactory
-
-
Method Details
-
getMetadata
public JakartaWebSocketFrameHandlerMetadata getMetadata(Class<?> endpointClass, jakarta.websocket.EndpointConfig endpointConfig) - Overrides:
getMetadata
in classJakartaWebSocketClientFrameHandlerFactory
-
newFrameHandler
public FrameHandler newFrameHandler(Object websocketPojo, ServerUpgradeRequest upgradeRequest, ServerUpgradeResponse upgradeResponse) Description copied from interface:FrameHandlerFactory
Create a FrameHandler from the provided websocketPojo.- Specified by:
newFrameHandler
in interfaceFrameHandlerFactory
- Parameters:
websocketPojo
- the websocket pojo to work withupgradeRequest
- the Upgrade Handshake Request used to create the FrameHandlerupgradeResponse
- the Upgrade Handshake Response used to create the FrameHandler- Returns:
- the API specific FrameHandler, or null if this implementation is unable to create
the FrameHandler (allowing another
FrameHandlerFactory
to try)
-