Class AccessLogFeature

java.lang.Object
io.helidon.webserver.accesslog.AccessLogFeature
All Implemented Interfaces:
RuntimeType.Api<io.helidon.webserver.accesslog.AccessLogConfig>, NamedService, ServerFeature

public final class AccessLogFeature extends Object implements ServerFeature, RuntimeType.Api<io.helidon.webserver.accesslog.AccessLogConfig>
Service that adds support for Access logging to Server.
  • Field Details

  • Method Details

    • create

      public static AccessLogFeature create()
      Create Access log support with default configuration.
      Returns:
      a new access log support to be registered with WebServer routing
    • create

      public static AccessLogFeature create(Config config)
      Create Access log support configured from Config.
      Parameters:
      config - to configure a new access log support instance
      Returns:
      a new access log support to be registered with WebServer routing
    • builder

      public static io.helidon.webserver.accesslog.AccessLogConfig.Builder builder()
      A new fluent API builder to create Access log support instance.
      Returns:
      a new builder
    • create

      public static AccessLogFeature create(io.helidon.webserver.accesslog.AccessLogConfig config)
      Create a new instance from its configuration.
      Parameters:
      config - configuration
      Returns:
      a new feature
    • create

      public static AccessLogFeature create(Consumer<io.helidon.webserver.accesslog.AccessLogConfig.Builder> builderConsumer)
      Create a new instance customizing its configuration.
      Parameters:
      builderConsumer - consumer of configuration
      Returns:
      a new feature
    • setup

      public void setup(ServerFeature.ServerFeatureContext featureContext)
      Description copied from interface: ServerFeature
      Set up a server feature. Server features can modify server configuration, right before the server is created. To access listener configuration, or routing, a list of all listeners is provided.
      Specified by:
      setup in interface ServerFeature
      Parameters:
      featureContext - to access builders of webserver, listeners, and routing
    • prototype

      public io.helidon.webserver.accesslog.AccessLogConfig prototype()
      Description copied from interface: RuntimeType.Api
      The prototype as it was received when creating this runtime object instance.
      Specified by:
      prototype in interface RuntimeType.Api<io.helidon.webserver.accesslog.AccessLogConfig>
      Returns:
      prototype object used to create this instance
    • name

      public String name()
      Description copied from interface: NamedService
      Name of this implementation, as provided in ConfiguredProvider.create(Config, String).
      Specified by:
      name in interface NamedService
      Returns:
      name of this service
    • type

      public String type()
      Description copied from interface: NamedService
      Type of this implementation, to distinguish instances of same type, with different NamedService.name(). Use for example ConfiguredProvider.configKey() to define the type.
      Specified by:
      type in interface NamedService
      Returns:
      type of this service