Package org.atmosphere.util
Class CookieUtil.ServerCookieDecoder
- java.lang.Object
-
- org.atmosphere.util.CookieUtil.ServerCookieDecoder
-
- Enclosing class:
- CookieUtil
public static final class CookieUtil.ServerCookieDecoder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static CookieUtil.ServerCookieDecoderLAXLax instance that doesn't validate name and valuestatic CookieUtil.ServerCookieDecoderSTRICTStrict encoder that validates that name and value chars are in the valid scope defined in RFC6265
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<javax.servlet.http.Cookie>decode(java.lang.String header)Decodes the specified Set-Cookie HTTP header value into aCookie.voiddecode(java.lang.String header, java.util.Set<javax.servlet.http.Cookie> cookies)Decodes the specified Set-Cookie HTTP header value into aCookie.protected javax.servlet.http.CookieinitCookie(java.lang.String header, int nameBegin, int nameEnd, int valueBegin, int valueEnd)
-
-
-
Field Detail
-
STRICT
public static final CookieUtil.ServerCookieDecoder STRICT
Strict encoder that validates that name and value chars are in the valid scope defined in RFC6265
-
LAX
public static final CookieUtil.ServerCookieDecoder LAX
Lax instance that doesn't validate name and value
-
-
Method Detail
-
decode
public java.util.Set<javax.servlet.http.Cookie> decode(java.lang.String header)
Decodes the specified Set-Cookie HTTP header value into aCookie.- Parameters:
header- the cookie header- Returns:
- the decoded
Cookie
-
decode
public void decode(java.lang.String header, java.util.Set<javax.servlet.http.Cookie> cookies)Decodes the specified Set-Cookie HTTP header value into aCookie.- Parameters:
header- the cookie headercookies- the cookies to be filled
-
initCookie
protected javax.servlet.http.Cookie initCookie(java.lang.String header, int nameBegin, int nameEnd, int valueBegin, int valueEnd)
-
-