Module io.inverno.mod.http.base
Package io.inverno.mod.http.base.header
Interface HeaderBuilder<A extends Header,B extends HeaderBuilder<A,B>>
- Type Parameters:
A
- the header type built by the builderB
- 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 TypeMethodDescriptionbuild()
Builds the header.headerName
(String name) Sets the specified header name.headerValue
(String value) Sets the specified raw header value.
-
Method Details
-
headerName
Sets the specified header name.
- Parameters:
name
- a header name- Returns:
- the header builder
-
headerValue
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
-