Package akka.http.scaladsl.model.headers
Class ModeledCustomHeaderCompanion<H extends ModeledCustomHeader<H>>
- java.lang.Object
-
- akka.http.scaladsl.model.headers.ModeledCustomHeaderCompanion<H>
-
public abstract class ModeledCustomHeaderCompanion<H extends ModeledCustomHeader<H>> extends java.lang.Object
To be extended by companion object of a custom header extendingModeledCustomHeader
. Implements necessary apply and unapply methods to make the such defined header feel "native".
-
-
Constructor Summary
Constructors Constructor Description ModeledCustomHeaderCompanion()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description H
apply(java.lang.String value)
ModeledCustomHeaderCompanion<H>
implicitlyLocatableCompanion()
java.lang.String
lowercaseName()
abstract java.lang.String
name()
abstract scala.util.Try<H>
parse(java.lang.String value)
scala.Option<java.lang.String>
unapply(HttpHeader h)
-
-
-
Method Detail
-
apply
public H apply(java.lang.String value)
-
implicitlyLocatableCompanion
public final ModeledCustomHeaderCompanion<H> implicitlyLocatableCompanion()
-
lowercaseName
public java.lang.String lowercaseName()
-
name
public abstract java.lang.String name()
-
parse
public abstract scala.util.Try<H> parse(java.lang.String value)
-
unapply
public scala.Option<java.lang.String> unapply(HttpHeader h)
-
-