java.lang.Object
org.eclipse.jetty.rewrite.handler.Rule
org.eclipse.jetty.rewrite.handler.PatternRule
org.eclipse.jetty.rewrite.handler.CookiePatternRule
Sets a response cookie whenever the rule matches.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.rewrite.handler.Rule
Rule.Handler, Rule.HttpURIHandler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(Rule.Handler input) Invoked after the Servlet pattern matched the URI path to apply the rule's logic.getName()getValue()voidvoidtoString()Returns the handling and terminating flag values.Methods inherited from class org.eclipse.jetty.rewrite.handler.PatternRule
getPattern, matchAndApply, setPatternMethods inherited from class org.eclipse.jetty.rewrite.handler.Rule
isTerminating, setTerminating
-
Constructor Details
-
CookiePatternRule
public CookiePatternRule() -
CookiePatternRule
-
-
Method Details
-
getName
- Returns:
- the response cookie name
-
setName
- Parameters:
name- the response cookie name
-
getValue
- Returns:
- the response cookie value
-
setValue
- Parameters:
value- the response cookie value
-
apply
Description copied from class:PatternRuleInvoked after the Servlet pattern matched the URI path to apply the rule's logic.
- Specified by:
applyin classPatternRule- Parameters:
input- the inputRequestandHandler- Returns:
- the possibly wrapped
RequestandHandler - Throws:
IOException- if applying the rule failed
-
toString
Description copied from class:RuleReturns the handling and terminating flag values.- Overrides:
toStringin classPatternRule
-