Package akka.http.scaladsl.model.headers
Class HttpCookiePair
- java.lang.Object
-
- akka.http.javadsl.model.headers.HttpCookiePair
-
- akka.http.scaladsl.model.headers.HttpCookiePair
-
- All Implemented Interfaces:
Renderable
,ToStringRenderable
,java.io.Serializable
,scala.Equals
,scala.Product
public abstract class HttpCookiePair extends HttpCookiePair implements ToStringRenderable, scala.Product, java.io.Serializable
for a full definition of the http cookie header fields, see http://tools.ietf.org/html/rfc6265 This class is sealed abstract to prevent generation of default apply method in companion- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpCookiePair()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpCookiePair
apply(java.lang.String name, java.lang.String value)
static HttpCookiePair
apply(scala.Tuple2<java.lang.String,java.lang.String> pair)
java.lang.String
name()
static HttpCookiePair
raw(java.lang.String name, java.lang.String value)
static HttpCookiePair
raw(scala.Tuple2<java.lang.String,java.lang.String> pair)
<R extends Rendering>
Renderingrender(R r)
HttpCookie
toCookie()
Converts this cookie pair into an HttpCookie to be used with the `Set-Cookie` header.static void
validate(java.lang.String name, java.lang.String value)
static void
validateRaw(java.lang.String name, java.lang.String value)
java.lang.String
value()
-
Methods inherited from class akka.http.javadsl.model.headers.HttpCookiePair
create, createRaw
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Methods inherited from interface akka.http.impl.util.ToStringRenderable
toString
-
-
-
-
Method Detail
-
apply
public static HttpCookiePair apply(scala.Tuple2<java.lang.String,java.lang.String> pair)
-
apply
public static HttpCookiePair apply(java.lang.String name, java.lang.String value)
-
raw
public static HttpCookiePair raw(scala.Tuple2<java.lang.String,java.lang.String> pair)
-
raw
public static HttpCookiePair raw(java.lang.String name, java.lang.String value)
-
validate
public static void validate(java.lang.String name, java.lang.String value)
-
validateRaw
public static void validateRaw(java.lang.String name, java.lang.String value)
-
name
public java.lang.String name()
- Specified by:
name
in classHttpCookiePair
-
value
public java.lang.String value()
- Specified by:
value
in classHttpCookiePair
-
render
public <R extends Rendering> Rendering render(R r)
- Specified by:
render
in interfaceRenderable
-
toCookie
public HttpCookie toCookie()
Description copied from class:HttpCookiePair
Converts this cookie pair into an HttpCookie to be used with the `Set-Cookie` header.- Specified by:
toCookie
in classHttpCookiePair
-
-