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 SummaryNested classes/interfaces inherited from class RuleRule.Handler, Rule.HttpURIHandler
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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 PatternRulegetPattern, matchAndApply, setPatternMethods inherited from class RuleisTerminating, setTerminating
- 
Constructor Details- 
CookiePatternRulepublic CookiePatternRule()
- 
CookiePatternRule
 
- 
- 
Method Details- 
getName
- 
setNameSet the response cookie name.- Parameters:
- name- the response cookie name
 
- 
getValue
- 
setValueSet the response cookie value.- Parameters:
- value- the response cookie value
 
- 
applyDescription copied from class:PatternRuleInvoked after the Servlet pattern matched the URI path to apply the rule's logic. - Specified by:
- applyin class- PatternRule
- Parameters:
- input- the input- Requestand- Handler
- Returns:
- the possibly wrapped RequestandHandler
- Throws:
- IOException- if applying the rule failed
 
- 
toString- Overrides:
- toStringin class- PatternRule
 
 
-