Class CookiePatternRule
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 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()Get the response cookie name.getValue()Get the response cookie value.voidSet the response cookie name.voidSet the response cookie value.toString()Methods inherited from class PatternRule
getPattern, matchAndApply, setPatternMethods inherited from class Rule
isTerminating, setTerminating
-
Constructor Details
-
CookiePatternRule
public CookiePatternRule() -
CookiePatternRule
-
-
Method Details
-
getName
-
setName
Set the response cookie name.- Parameters:
name- the response cookie name
-
getValue
-
setValue
Set the response cookie value.- 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
- Overrides:
toStringin classPatternRule
-