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 TypeMethodDescriptionvoid
appendAttribute
(String header, int keyStart, int keyEnd, String value) Parse and store a key-value pair.cookie()
private int
mergeMaxAgeAndExpire
(int maxAge, String expires) private void
private void
private void
private void
private void
setCookieAttribute
(String header, int keyStart, int keyEnd, String value) private void
private 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
-