Module io.inverno.mod.http.base
Package io.inverno.mod.http.base.header
Class AbstractHeaderBuilder<A extends Header,B extends AbstractHeaderBuilder<A,B>>
java.lang.Object
io.inverno.mod.http.base.header.AbstractHeaderBuilder<A,B>
- Type Parameters:
A
- the header typeB
- the header builder type
- All Implemented Interfaces:
HeaderBuilder<A,
B>
public abstract class AbstractHeaderBuilder<A extends Header,B extends AbstractHeaderBuilder<A,B>>
extends Object
implements HeaderBuilder<A,B>
Base implementation for HeaderBuilder
.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionheaderName
(String headerName) Sets the specified header name.headerValue
(String headerValue) Sets the specified raw header value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.inverno.mod.http.base.header.HeaderBuilder
build
-
Field Details
-
headerName
The header name. -
headerValue
The header value.
-
-
Constructor Details
-
AbstractHeaderBuilder
public AbstractHeaderBuilder()
-
-
Method Details
-
headerName
Description copied from interface:HeaderBuilder
Sets the specified header name.
- Specified by:
headerName
in interfaceHeaderBuilder<A extends Header,
B extends AbstractHeaderBuilder<A, B>> - Parameters:
headerName
- a header name- Returns:
- the header builder
-
headerValue
Description copied from interface:HeaderBuilder
Sets the specified raw header value.
- Specified by:
headerValue
in interfaceHeaderBuilder<A extends Header,
B extends AbstractHeaderBuilder<A, B>> - Parameters:
headerValue
- a raw header value- Returns:
- the header builder
-