Class ModeledCustomHeaderFactory<H extends ModeledCustomHeader>
java.lang.Object
org.apache.pekko.http.javadsl.model.headers.ModeledCustomHeaderFactory<H>
Companion class for the
ModeledCustomHeader
class. It offers methods to create ModeledCustomHeader
from String
or HttpHeader
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a newModeledCustomHeader
from the value checking that the format is correct.from
(HttpHeader header) Transforms anHttpHeader
to thisModeledCustomHeader
if the name and value are correct.abstract String
name()
protected abstract H
Parses the value checking that the format is correct.
-
Constructor Details
-
ModeledCustomHeaderFactory
public ModeledCustomHeaderFactory()
-
-
Method Details
-
name
-
lowercaseName
-
parse
Parses the value checking that the format is correct. It may throw if value is not correct -
create
Creates a newModeledCustomHeader
from the value checking that the format is correct. It may throw if value is not correct -
from
Transforms anHttpHeader
to thisModeledCustomHeader
if the name and value are correct. It may throw in case of malformed headers
-