Interface ConnectionContext

All Superinterfaces:
SocketContext

public interface ConnectionContext extends SocketContext
Server connection context.
  • Method Details

    • listenerContext

      ListenerContext listenerContext()
      Context of the listener. Configuration specific to a single listener.
      Returns:
      listener specific context
    • executor

      ExecutorService executor()
      Executor service to submit asynchronous tasks.
      Returns:
      executor service
    • dataWriter

      DataWriter dataWriter()
      Data writer to write response bytes.
      Returns:
      data writer
    • dataReader

      DataReader dataReader()
      Data reader to read request bytes.
      Returns:
      data reader
    • router

      Router router()
      Router that may contain routings of different types (HTTP, WebSocket, grpc).
      Returns:
      the router
    • proxyProtocolData

      default Optional<ProxyProtocolData> proxyProtocolData()
      Proxy protocol header data.
      Returns:
      protocol header data if proxy protocol is enabled on socket
      See Also:
      • ListenerConfigBlueprint.enableProxyProtocol()
    • serverSocket

      default HelidonSocket serverSocket()
      The underlying network socket for the connection.
      Returns:
      the socket