Interface FrameHandlerFactory

All Known Implementing Classes:
JakartaWebSocketServerFrameHandlerFactory, JettyServerFrameHandlerFactory

public interface FrameHandlerFactory
Factory for FrameHandler instances
  • 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 with
      upgradeRequest - the Upgrade Handshake Request used to create the FrameHandler
      upgradeResponse - 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)