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.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<jakarta.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<jakarta.servlet.http.Cookie> cookies)Decodes the specified Set-Cookie HTTP header value into aCookie.protected jakarta.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
-
-
Method Detail
-
decode
public java.util.Set<jakarta.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<jakarta.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 jakarta.servlet.http.Cookie initCookie(java.lang.String header, int nameBegin, int nameEnd, int valueBegin, int valueEnd)
-
-