Interface CookieParser
- All Known Implementing Classes:
CookieCutter, RFC6265CookieParser
public interface CookieParser
Cookie parser.
An interface for variations of a cookie parser.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe handler of parsed cookies.static classThe exception thrown when a cookie cannot be parsed andCookieCompliance.Violation.INVALID_COOKIESis not allowed. -
Method Summary
Modifier and TypeMethodDescriptionstatic CookieParsernewParser(CookieParser.Handler handler, CookieCompliance compliance, ComplianceViolation.Listener complianceListener) A factory method to create a new parser suitable for the compliance mode.voidparseField(String field) default voidparseFields(List<String> rawFields)
-
Method Details
-
newParser
static CookieParser newParser(CookieParser.Handler handler, CookieCompliance compliance, ComplianceViolation.Listener complianceListener) A factory method to create a new parser suitable for the compliance mode.
- Parameters:
handler- the handler for Cookie Parsing eventscompliance- The compliance mode to use for parsing.complianceListener- A listener for compliance violations or null.- Returns:
- A CookieParser instance.
-
parseField
-
parseFields
-