Class CookieElementBuilder

java.lang.Object
io.micronaut.http.server.netty.handler.accesslog.element.CookieElementBuilder
All Implemented Interfaces:
io.micronaut.core.order.Ordered, LogElementBuilder

public final class CookieElementBuilder extends Object implements LogElementBuilder
Builder for CookieElement and CookiesElement.
Since:
2.0
  • Field Summary

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable LogElement
    build(String token, @Nullable String param)
    Builds the log element for the specified token.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micronaut.core.order.Ordered

    getOrder
  • Constructor Details

    • CookieElementBuilder

      public CookieElementBuilder()
  • Method Details

    • build

      public @Nullable LogElement build(String token, @Nullable String param)
      Description copied from interface: LogElementBuilder
      Builds the log element for the specified token. It should return null it the token is not supported.
      Specified by:
      build in interface LogElementBuilder
      Parameters:
      token - The log element marker.
      param - An optional paramter.
      Returns:
      A LogElement or null if not supported by the builder.