@Contract(threading=IMMUTABLE) public class LaxExpiresHandler extends AbstractCookieAttributeHandler implements CommonCookieAttributeHandler
Modifier and Type | Field and Description |
---|---|
private static Pattern |
DAY_OF_MONTH_PATTERN |
private static BitSet |
DELIMS |
private static Pattern |
MONTH_PATTERN |
private static Map<String,Integer> |
MONTHS |
private static Pattern |
TIME_PATTERN |
(package private) static TimeZone |
UTC |
private static Pattern |
YEAR_PATTERN |
Constructor and Description |
---|
LaxExpiresHandler() |
Modifier and Type | Method and Description |
---|---|
private void |
copyContent(CharSequence buf,
ParserCursor cursor,
StringBuilder dst) |
String |
getAttributeName() |
void |
parse(SetCookie cookie,
String value)
Parse the given cookie attribute value and update the corresponding
Cookie property. |
private void |
skipDelims(CharSequence buf,
ParserCursor cursor) |
match, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
match, validate
private static final Pattern TIME_PATTERN
private static final Pattern DAY_OF_MONTH_PATTERN
private static final Pattern MONTH_PATTERN
private static final Pattern YEAR_PATTERN
public LaxExpiresHandler()
public void parse(SetCookie cookie, String value) throws MalformedCookieException
CookieAttributeHandler
Cookie
property.parse
in interface CookieAttributeHandler
cookie
- Cookie
to be updatedvalue
- cookie attribute value from the cookie response headerMalformedCookieException
private void skipDelims(CharSequence buf, ParserCursor cursor)
private void copyContent(CharSequence buf, ParserCursor cursor, StringBuilder dst)
public String getAttributeName()
getAttributeName
in interface CommonCookieAttributeHandler
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses