@Contract(threading=IMMUTABLE) public class LaxExpiresHandler extends AbstractCookieAttributeHandler implements CommonCookieAttributeHandler
| Modifier and Type | Field and Description |
|---|---|
private static java.util.regex.Pattern |
DAY_OF_MONTH_PATTERN |
private static java.util.BitSet |
DELIMS |
private static java.util.regex.Pattern |
MONTH_PATTERN |
private static java.util.Map<java.lang.String,java.lang.Integer> |
MONTHS |
private static java.util.regex.Pattern |
TIME_PATTERN |
(package private) static java.util.TimeZone |
UTC |
private static java.util.regex.Pattern |
YEAR_PATTERN |
| Constructor and Description |
|---|
LaxExpiresHandler() |
| Modifier and Type | Method and Description |
|---|---|
private void |
copyContent(java.lang.CharSequence buf,
org.apache.http.message.ParserCursor cursor,
java.lang.StringBuilder dst) |
java.lang.String |
getAttributeName() |
void |
parse(SetCookie cookie,
java.lang.String value)
Parse the given cookie attribute value and update the corresponding
Cookie property. |
private void |
skipDelims(java.lang.CharSequence buf,
org.apache.http.message.ParserCursor cursor) |
match, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmatch, validatestatic final java.util.TimeZone UTC
private static final java.util.BitSet DELIMS
private static final java.util.Map<java.lang.String,java.lang.Integer> MONTHS
private static final java.util.regex.Pattern TIME_PATTERN
private static final java.util.regex.Pattern DAY_OF_MONTH_PATTERN
private static final java.util.regex.Pattern MONTH_PATTERN
private static final java.util.regex.Pattern YEAR_PATTERN
public void parse(SetCookie cookie, java.lang.String value) throws MalformedCookieException
CookieAttributeHandlerCookie property.parse in interface CookieAttributeHandlercookie - Cookie to be updatedvalue - cookie attribute value from the cookie response headerMalformedCookieExceptionprivate void skipDelims(java.lang.CharSequence buf,
org.apache.http.message.ParserCursor cursor)
private void copyContent(java.lang.CharSequence buf,
org.apache.http.message.ParserCursor cursor,
java.lang.StringBuilder dst)
public java.lang.String getAttributeName()
getAttributeName in interface CommonCookieAttributeHandler