Interface ListenerContext


public interface ListenerContext
Listener context. Provides elements that are configured on listener (socket) level.
  • Method Summary

    Modifier and Type
    Method
    Description
    Configuration of this listener.
    io.helidon.http.encoding.ContentEncodingContext
    Content encoding support, to handle entity encoding (such as gzip, deflate).
    Server context configured as the top level parents of all request context.
    Direct handlers for non-routing exception handling.
    Virtual thread per task executor service that can be used to execute tasks.
    io.helidon.http.media.MediaContext
    Media context to read and write typed entities.
  • Method Details

    • context

      Context context()
      Server context configured as the top level parents of all request context.
      Returns:
      server context, always available
    • mediaContext

      io.helidon.http.media.MediaContext mediaContext()
      Media context to read and write typed entities.
      Returns:
      media context
    • contentEncodingContext

      io.helidon.http.encoding.ContentEncodingContext contentEncodingContext()
      Content encoding support, to handle entity encoding (such as gzip, deflate).
      Returns:
      content encoding support
    • directHandlers

      DirectHandlers directHandlers()
      Direct handlers for non-routing exception handling.
      Returns:
      direct handlers
    • config

      ListenerConfig config()
      Configuration of this listener.
      Returns:
      listener configuration
    • executor

      ExecutorService executor()
      Virtual thread per task executor service that can be used to execute tasks. Tasks submitted on this executor are considered to be tasks that must be completed before graceful shutdown.
      Returns:
      executor service