Cookie
, org.refcodes.mixin.KeyAccessor<String>
, org.refcodes.mixin.KeyAccessor.KeyBuilder<String,String>
, org.refcodes.mixin.KeyAccessor.KeyMutator<String>
, org.refcodes.mixin.KeyAccessor.KeyProperty<String>
, org.refcodes.structure.Property
, org.refcodes.structure.Property.PropertyBuilder
, org.refcodes.structure.Relation<String,String>
, org.refcodes.structure.Relation.RelationBuilder<String,String>
, org.refcodes.mixin.ValueAccessor<String>
, org.refcodes.mixin.ValueAccessor.ValueBuilder<String,String>
, org.refcodes.mixin.ValueAccessor.ValueMutator<String>
, org.refcodes.mixin.ValueAccessor.ValueProperty<String>
RequestCookieImpl
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.mixin.KeyAccessor.KeyBuilder<K extends Object,B extends org.refcodes.mixin.KeyAccessor.KeyBuilder<K,B>>, org.refcodes.mixin.KeyAccessor.KeyMutator<K extends Object>, org.refcodes.mixin.KeyAccessor.KeyProperty<K extends Object>
org.refcodes.structure.Property.PropertyBuilder
org.refcodes.structure.Relation.RelationBuilder<K extends Object,V extends Object>
org.refcodes.mixin.ValueAccessor.ValueBuilder<V extends Object,B extends org.refcodes.mixin.ValueAccessor.ValueBuilder<V,B>>, org.refcodes.mixin.ValueAccessor.ValueMutator<V extends Object>, org.refcodes.mixin.ValueAccessor.ValueProperty<V extends Object>
Modifier and Type | Method | 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.