Class JavaxWebSocketServerFrameHandlerFactory
java.lang.Object
org.eclipse.jetty.websocket.javax.common.JavaxWebSocketFrameHandlerFactory
org.eclipse.jetty.websocket.javax.client.internal.JavaxWebSocketClientFrameHandlerFactory
org.eclipse.jetty.websocket.javax.server.internal.JavaxWebSocketServerFrameHandlerFactory
- All Implemented Interfaces:
FrameHandlerFactory
public class JavaxWebSocketServerFrameHandlerFactory
extends JavaxWebSocketClientFrameHandlerFactory
implements FrameHandlerFactory
-
Field Summary
Fields inherited from class org.eclipse.jetty.websocket.javax.common.JavaxWebSocketFrameHandlerFactory
components, container, paramIdentifier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMetadata
(Class<?> endpointClass, javax.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.javax.client.internal.JavaxWebSocketClientFrameHandlerFactory
newDefaultEndpointConfig
Methods inherited from class org.eclipse.jetty.websocket.javax.common.JavaxWebSocketFrameHandlerFactory
bindTemplateVariables, createEndpointMetadata, createMessageSink, discoverJavaxFrameHandlerMetadata, getApplicationMethodHandleLookup, getServerMethodHandleLookup, newJavaxWebSocketFrameHandler, wrapNonVoidReturnType
-
Constructor Details
-
JavaxWebSocketServerFrameHandlerFactory
-
-
Method Details
-
getMetadata
public JavaxWebSocketFrameHandlerMetadata getMetadata(Class<?> endpointClass, javax.websocket.EndpointConfig endpointConfig) - Overrides:
getMetadata
in classJavaxWebSocketClientFrameHandlerFactory
-
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)
-