Package akka.http.scaladsl.model.headers
Class ModeledCustomHeader<H extends ModeledCustomHeader<H>>
- java.lang.Object
-
- akka.http.javadsl.model.HttpHeader
-
- akka.http.scaladsl.model.HttpHeader
-
- akka.http.javadsl.model.headers.CustomHeader
-
- akka.http.scaladsl.model.headers.CustomHeader
-
- akka.http.scaladsl.model.headers.ModeledCustomHeader<H>
-
- All Implemented Interfaces:
Renderable
,ToStringRenderable
public abstract class ModeledCustomHeader<H extends ModeledCustomHeader<H>> extends CustomHeader
Support class for building user-defined custom headers defined by implementingname
andvalue
. By implementing aModeledCustomHeader
instead ofCustomHeader
directly, all needed unapply methods are provided for this class, such that it can be pattern matched on fromRawHeader
and the other way around as well.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.http.scaladsl.model.HttpHeader
HttpHeader.ParsingResult, HttpHeader.ParsingResult$
-
-
Constructor Summary
Constructors Constructor Description ModeledCustomHeader()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ModeledCustomHeaderCompanion<H>
companion()
java.lang.String
lowercaseName()
Returns the lower-cased name of the header.java.lang.String
name()
Returns the name of the header.-
Methods inherited from class akka.http.scaladsl.model.headers.CustomHeader
render
-
Methods inherited from class akka.http.javadsl.model.headers.CustomHeader
value
-
Methods inherited from class akka.http.scaladsl.model.HttpHeader
fastFind, is, isNot, parse, unapply, unsafeToString
-
Methods inherited from class akka.http.javadsl.model.HttpHeader
parse, renderInRequests, renderInResponses
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.http.impl.util.ToStringRenderable
toString
-
-
-
-
Method Detail
-
companion
public abstract ModeledCustomHeaderCompanion<H> companion()
-
lowercaseName
public final java.lang.String lowercaseName()
Description copied from class:HttpHeader
Returns the lower-cased name of the header.- Overrides:
lowercaseName
in classCustomHeader
-
name
public final java.lang.String name()
Description copied from class:HttpHeader
Returns the name of the header.- Specified by:
name
in classCustomHeader
-
-