Package com.iizix.nio

Interface WebSocketAcceptor

All Known Implementing Classes:
JakartaEEServer, JettyRunConfiguration, RuntimeBuilderServer, ServerShell, StandardServer, TransactionProcessor

public interface WebSocketAcceptor
The WebSocket server acceptor listener.
Author:
Christopher Mindus
  • Method Details

    • getHandledContextPaths

      String[] getHandledContextPaths()
      Gets the list of potential handled context paths for the websocket.
      Returns:
      The array of possibly handled context paths, or null for none.
    • isRequestURIAccepted

      Object isRequestURIAccepted(IWebSocketComm comm, String uri, Map<String,List<String>> headerFields)
      Called to check if a request URI can be accepted.
      Parameters:
      comm - The WebSocket communication instance. For certain WebSocket implementations, this instance is null (e.g. for Grizzly in GlassFish).
      uri - The request URI, formatted as e.g. "/something/more.ws".
      headerFields - HTTP header fields, null if called for a quick-check of acceptance.
      Returns:
      Object an object that is attached to the TransactionComm instance, or null if the URI is not accepted.