Package akka.http.javadsl.model.headers
Class ModeledCustomHeader
- java.lang.Object
-
- akka.http.javadsl.model.HttpHeader
-
- akka.http.scaladsl.model.HttpHeader
-
- akka.http.javadsl.model.headers.CustomHeader
-
- akka.http.javadsl.model.headers.ModeledCustomHeader
-
- All Implemented Interfaces:
Renderable
,ToStringRenderable
public abstract class ModeledCustomHeader extends CustomHeader
Support class for building user-defined custom headers defined by implementing `name` and `value`. ImplementModeledCustomHeader
andModeledCustomHeaderFactory
instead ofCustomHeader
to be able to use the convenience methods that allow parsing the custom user-defined header fromHttpHeader
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.http.scaladsl.model.HttpHeader
HttpHeader.ParsingResult, HttpHeader.ParsingResult$
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ModeledCustomHeader(java.lang.String name, java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
lowercaseName()
Returns the lower-cased name of the header.java.lang.String
name()
Returns the name of the header.<R extends Rendering>
Rrender(R r)
java.lang.String
value()
Returns the String representation of the value of the header.-
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
-
name
public java.lang.String name()
Description copied from class:HttpHeader
Returns the name of the header.- Specified by:
name
in classCustomHeader
-
lowercaseName
public java.lang.String lowercaseName()
Description copied from class:HttpHeader
Returns the lower-cased name of the header.- Specified by:
lowercaseName
in classHttpHeader
-
value
public java.lang.String value()
Description copied from class:HttpHeader
Returns the String representation of the value of the header.- Specified by:
value
in classCustomHeader
-
render
public <R extends Rendering> R render(R r)
-
-