public interface RequestCookie extends Cookie
RequestCookie
represents a builder for a building request
cookies.
We use URL encoding / decoding for the cookie value (regarding
fromHttpCookie(String)
and toHttpCookie()
) to make life
easier and not fall into the trap of unescaped values.org.refcodes.structure.Property.PropertyBuilder
org.refcodes.structure.Relation.RelationBuilder<K,V>
Modifier and Type | Method and Description |
---|---|
default void |
fromHttpCookie(String aHttpCookie)
Sets the cookie according to the provided HTTP cookie text.
|
default String |
toHttpCookie()
Returns the cookie to be assigned to a cookie Header-Field.
|
default RequestCookie |
withHttpCookie(String aCookie)
Sets the cookie according to the provided HTTP cookie text via
Cookie.fromHttpCookie(String) . |
default RequestCookie withHttpCookie(String aCookie)
Cookie.fromHttpCookie(String)
.withHttpCookie
in interface Cookie
aCookie
- The HTTP cookie text.Cookie
instance as of the Builder-Pattern.default void fromHttpCookie(String aHttpCookie)
fromHttpCookie
in interface Cookie
aHttpCookie
- The HTTP cookie text.default String toHttpCookie()
toHttpCookie
in interface Cookie
Copyright © 2018. All rights reserved.