Package akka.http.scaladsl.model.headers
Class Cookie
- java.lang.Object
-
- akka.http.javadsl.model.HttpHeader
-
- akka.http.scaladsl.model.HttpHeader
-
- akka.http.javadsl.model.headers.Cookie
-
- akka.http.scaladsl.model.headers.Cookie
-
- All Implemented Interfaces:
Renderable
,ToStringRenderable
,ModeledHeader
,RequestHeader
,SensitiveHttpHeader
,java.io.Serializable
,scala.Equals
,scala.Product
public final class Cookie extends Cookie implements RequestHeader, SensitiveHttpHeader, scala.Product, java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.http.scaladsl.model.HttpHeader
HttpHeader.ParsingResult, HttpHeader.ParsingResult$
-
-
Constructor Summary
Constructors Constructor Description Cookie(scala.collection.immutable.Seq<HttpCookiePair> cookies)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Cookie
apply(HttpCookiePair first, scala.collection.immutable.Seq<HttpCookiePair> more)
static Cookie
apply(java.lang.String name, java.lang.String value)
static Cookie
apply(scala.Tuple2<java.lang.String,java.lang.String> first, scala.collection.immutable.Seq<scala.Tuple2<java.lang.String,java.lang.String>> more)
protected Cookie$
companion()
static Renderer<scala.collection.immutable.Iterable<HttpCookiePair>>
cookiePairsRenderer()
scala.collection.immutable.Seq<HttpCookiePair>
cookies()
java.lang.Iterable<HttpCookiePair>
getCookies()
Java APIstatic java.lang.String
lowercaseName()
static java.lang.String
name()
static scala.util.Either<scala.collection.immutable.List<ErrorInfo>,T>
parseFromValueString(java.lang.String value)
static <R extends Rendering>
Renderingrender(R r)
<R extends Rendering>
RenderingrenderValue(R r)
-
Methods inherited from class akka.http.scaladsl.model.HttpHeader
fastFind, is, isNot, lowercaseName, name, parse, unapply, unsafeToString, value
-
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.scaladsl.model.headers.ModeledHeader
lowercaseName, name, render, renderInResponses, value
-
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Methods inherited from interface akka.http.impl.util.Renderable
render
-
Methods inherited from interface akka.http.scaladsl.model.headers.RequestHeader
renderInRequests
-
Methods inherited from interface akka.http.scaladsl.model.SensitiveHttpHeader
toString
-
Methods inherited from interface akka.http.impl.util.ToStringRenderable
toString
-
-
-
-
Constructor Detail
-
Cookie
public Cookie(scala.collection.immutable.Seq<HttpCookiePair> cookies)
-
-
Method Detail
-
apply
public static Cookie apply(HttpCookiePair first, scala.collection.immutable.Seq<HttpCookiePair> more)
-
apply
public static Cookie apply(java.lang.String name, java.lang.String value)
-
apply
public static Cookie apply(scala.Tuple2<java.lang.String,java.lang.String> first, scala.collection.immutable.Seq<scala.Tuple2<java.lang.String,java.lang.String>> more)
-
cookiePairsRenderer
public static Renderer<scala.collection.immutable.Iterable<HttpCookiePair>> cookiePairsRenderer()
-
name
public static java.lang.String name()
-
lowercaseName
public static java.lang.String lowercaseName()
-
parseFromValueString
public static scala.util.Either<scala.collection.immutable.List<ErrorInfo>,T> parseFromValueString(java.lang.String value)
-
cookies
public scala.collection.immutable.Seq<HttpCookiePair> cookies()
-
renderValue
public <R extends Rendering> Rendering renderValue(R r)
- Specified by:
renderValue
in interfaceModeledHeader
-
companion
protected Cookie$ companion()
- Specified by:
companion
in interfaceModeledHeader
-
getCookies
public java.lang.Iterable<HttpCookiePair> getCookies()
Java API- Specified by:
getCookies
in classCookie
-
-