Class Origin

All Implemented Interfaces:
Serializable, Cloneable, Header, NameValuePair

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

    • Origin

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

      public Origin(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 Origin 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 Origin 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.