Interface OpenListener


public interface OpenListener
Interface that represents an open listener, aka a connector.
Author:
Stuart Douglas
  • Method Details

    • getRootHandler

      HttpHandler getRootHandler()
      Returns:
      The first handler that will be executed by requests on the connector
    • setRootHandler

      void setRootHandler(HttpHandler rootHandler)
      Sets the root handler
      Parameters:
      rootHandler - The new root handler
    • getUndertowOptions

      io.undertow.httpcore.UndertowOptionMap getUndertowOptions()
      Returns:
      The connector options
    • setUndertowOptions

      void setUndertowOptions(io.undertow.httpcore.UndertowOptionMap undertowOptions)
      Parameters:
      undertowOptions - The connector options
    • getBufferPool

      io.netty.buffer.ByteBufAllocator getBufferPool()
      Returns:
      The buffer pool in use by this connector
    • getConnectorStatistics

      ConnectorStatistics getConnectorStatistics()
      Returns:
      The connector statistics, or null if statistics gathering is disabled.
    • closeConnections

      default void closeConnections()
      Close all active connections that were handled by this listener