Package akka.http.javadsl.model.headers
Class CustomHeader
- java.lang.Object
-
- akka.http.javadsl.model.HttpHeader
-
- akka.http.scaladsl.model.HttpHeader
-
- akka.http.javadsl.model.headers.CustomHeader
-
- All Implemented Interfaces:
Renderable
,ToStringRenderable
- Direct Known Subclasses:
CustomHeader
,ModeledCustomHeader
public abstract class CustomHeader extends HttpHeader
The model of an HTTP header. In its most basic form headers are simple name-value pairs. Header names are compared in a case-insensitive way. 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 Constructor Description CustomHeader()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.lang.String
name()
Returns the name of the header.abstract 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, lowercaseName, 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.Renderable
render
-
Methods inherited from interface akka.http.impl.util.ToStringRenderable
toString
-
-
-
-
Method Detail
-
name
public abstract java.lang.String name()
Description copied from class:HttpHeader
Returns the name of the header.- Specified by:
name
in classHttpHeader
-
value
public abstract java.lang.String value()
Description copied from class:HttpHeader
Returns the String representation of the value of the header.- Specified by:
value
in classHttpHeader
-
-