Class NoTrace

All Implemented Interfaces:
Serializable, Header, NameValuePair

@Header("No-Trace") public class NoTrace extends BasicBooleanHeader
Represents a parsed No-Trace HTTP request header.
See Also:
  • Field Details

    • TRUE

      public static final NoTrace TRUE
      Constant for true value.
    • FALSE

      public static final NoTrace FALSE
      Constant for false value.
  • Constructor Details

    • NoTrace

      public NoTrace(Boolean value)
      Constructor.
      Parameters:
      value - The header value.
      Can be null to create a header with no value.
    • NoTrace

      public NoTrace(String value)
      Constructor.
      Parameters:
      value - The header value.
      Must be parsable by Boolean.parseBoolean(String).
      Can be null to create a header with no value.
    • NoTrace

      public NoTrace(Supplier<Boolean> value)
      Constructor with delayed value.

      Header value is re-evaluated on each call to BasicBooleanHeader.getValue().

      Parameters:
      value - The supplier of the header value.
      Can be null to create a header with no value.
  • Method Details

    • of

      public static NoTrace of(Boolean value)
      Static creator.
      Parameters:
      value - The header value.
      Can be null.
      Returns:
      A new header bean, or null if the value was null.
    • of

      public static NoTrace of(String value)
      Static creator.
      Parameters:
      value - The header value.
      Must be parsable by Boolean.parseBoolean(String).
      Can be null.
      Returns:
      A new header bean, or null if the value was null.
    • of

      public static NoTrace of(Supplier<Boolean> value)
      Static creator with delayed value.

      Header value is re-evaluated on each call to BasicBooleanHeader.getValue().

      Parameters:
      value - The header value supplier.
      Can be null.
      Returns:
      A new header bean, or null if the value was null.