Package org.eclipse.jetty.http
Interface CookieParser
- All Known Implementing Classes:
CookieCutter
,RFC6265CookieParser
public interface CookieParser
Cookie parser.
An interface for variations of a cookie parser.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The handler of parsed cookies.static class
The exception thrown when a cookie cannot be parsed andCookieCompliance.Violation.INVALID_COOKIES
is not allowed. -
Method Summary
Modifier and TypeMethodDescriptionstatic CookieParser
newParser
(CookieParser.Handler handler, CookieCompliance compliance, ComplianceViolation.Listener complianceListener) A factory method to create a new parser suitable for the compliance mode.void
parseField
(String field) default void
parseFields
(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:
compliance
- The compliance mode to use for parsing.complianceListener
- A listener for compliance violations or null.- Returns:
- A CookieParser instance.
-
parseField
-
parseFields
-