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 newModeledCustomHeaderfrom the value checking that the format is correct.from(HttpHeader header) Transforms anHttpHeaderto thisModeledCustomHeaderif the name and value are correct.abstract Stringname()protected abstract HParses 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 newModeledCustomHeaderfrom the value checking that the format is correct. It may throw if value is not correct -
from
Transforms anHttpHeaderto thisModeledCustomHeaderif the name and value are correct. It may throw in case of malformed headers
-