Interface FrameHandlerFactory
- All Known Implementing Classes:
JakartaWebSocketServerFrameHandlerFactory
,JettyServerFrameHandlerFactory
public interface FrameHandlerFactory
Factory for FrameHandler instances
-
Method Summary
Modifier and TypeMethodDescriptionnewFrameHandler
(Object websocketPojo, ServerUpgradeRequest upgradeRequest, ServerUpgradeResponse upgradeResponse) Create a FrameHandler from the provided websocketPojo.
-
Method Details
-
newFrameHandler
FrameHandler newFrameHandler(Object websocketPojo, ServerUpgradeRequest upgradeRequest, ServerUpgradeResponse upgradeResponse) Create a FrameHandler from the provided websocketPojo.- 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)
-