Class ClientCookieDecoder.CookieBuilder
java.lang.Object
org.jboss.netty.handler.codec.http.cookie.ClientCookieDecoder.CookieBuilder
- Enclosing class:
ClientCookieDecoder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendAttribute(String header, int keyStart, int keyEnd, String value) Parse and store a key-value pair.cookie()private intmergeMaxAgeAndExpire(int maxAge, String expires) private voidprivate voidprivate voidprivate voidprivate voidsetCookieAttribute(String header, int keyStart, int keyEnd, String value) private voidprivate void
-
Field Details
-
cookie
-
domain
-
path
-
maxAge
private int maxAge -
expires
-
secure
private boolean secure -
httpOnly
private boolean httpOnly
-
-
Constructor Details
-
CookieBuilder
-
-
Method Details
-
mergeMaxAgeAndExpire
-
cookie
-
appendAttribute
Parse and store a key-value pair. First one is considered to be the cookie name/value. Unknown attribute names are silently discarded.- Parameters:
header- the HTTP headerkeyStart- where the key starts in the headerkeyEnd- where the key ends in the headervalue- the decoded value
-
setCookieAttribute
-
parse4
-
parse6
-
setExpire
-
setMaxAge
-
parse7
-
parse8
-