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 org.eclipse.jetty.rewrite.handler.Rule
Rule.Handler, Rule.HttpURIHandler
-
Constructor Summary
-
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.void
Set the response cookie name.void
Set the response cookie value.toString()
Methods inherited from class org.eclipse.jetty.rewrite.handler.PatternRule
getPattern, matchAndApply, setPattern
Methods inherited from class org.eclipse.jetty.rewrite.handler.Rule
isTerminating, setTerminating
-
Constructor Details
-
CookiePatternRule
public CookiePatternRule() -
CookiePatternRule
-
-
Method Details
-
getName
Get the response cookie name.- Returns:
- the response cookie name
-
setName
Set the response cookie name.- Parameters:
name
- the response cookie name
-
getValue
Get the response cookie value.- Returns:
- the response cookie value
-
setValue
Set the response cookie value.- Parameters:
value
- the response cookie value
-
apply
Description copied from class:PatternRule
Invoked after the Servlet pattern matched the URI path to apply the rule's logic.
- Specified by:
apply
in classPatternRule
- Parameters:
input
- the inputRequest
andHandler
- Returns:
- the possibly wrapped
Request
andHandler
- Throws:
IOException
- if applying the rule failed
-
toString
- Overrides:
toString
in classPatternRule
-