Class CustomHeader

All Implemented Interfaces:
Renderable, ToStringRenderable
Direct Known Subclasses:
CustomHeader, ModeledCustomHeader, TlsSessionInfo

public abstract class CustomHeader extends HttpHeader
The model of an HTTP header. In its most basic form headers are simple name-value pairs. Header names are compared in a case-insensitive way. Implement ModeledCustomHeader and ModeledCustomHeaderFactory instead of CustomHeader to be able to use the convenience methods that allow parsing the custom user-defined header from HttpHeader.
  • Constructor Details

    • CustomHeader

      public CustomHeader()
  • Method Details

    • name

      public abstract String name()
      Description copied from class: HttpHeader
      Returns the name of the header.
      Specified by:
      name in class HttpHeader
    • value

      public abstract String value()
      Description copied from class: HttpHeader
      Returns the String representation of the value of the header.
      Specified by:
      value in class HttpHeader