Interface HeaderBuilder<A extends Header,B extends HeaderBuilder<A,B>>

Type Parameters:
A - the header type built by the builder
B - the header builder type
All Known Implementing Classes:
AbstractHeaderBuilder

public interface HeaderBuilder<A extends Header,B extends HeaderBuilder<A,B>>

A header builder is used to build a specific Header instance.

Since:
1.0
Author:
Jeremy Kuhn
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Builds the header.
    Sets the specified header name.
    Sets the specified raw header value.
  • Method Details

    • headerName

      B headerName(String name)

      Sets the specified header name.

      Parameters:
      name - a header name
      Returns:
      the header builder
    • headerValue

      B headerValue(String value)

      Sets the specified raw header value.

      Parameters:
      value - a raw header value
      Returns:
      the header builder
    • build

      A build()

      Builds the header.

      Returns:
      a header instance