Class Forwarded

All Implemented Interfaces:
Serializable, Cloneable, Header, NameValuePair

@Header("Forwarded") public class Forwarded extends BasicStringHeader
Represents a parsed Forwarded HTTP request header.
See Also:
  • Constructor Details

    • Forwarded

      public Forwarded(String value)
      Constructor.
      Parameters:
      value - The header value.
      Can be null.
    • Forwarded

      public Forwarded(Supplier<String> value)
      Constructor with delayed value.

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

      Parameters:
      value - The supplier of the header value.
      Can be null.
  • Method Details

    • of

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

      public static Forwarded of(Supplier<String> value)
      Static creator with delayed value.

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

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