Class Scheme
java.lang.Object
org.ocpsoft.rewrite.config.DefaultConditionBuilder
org.ocpsoft.rewrite.servlet.config.HttpCondition
org.ocpsoft.rewrite.servlet.config.Scheme
- All Implemented Interfaces:
Condition,ConditionBuilder,Parameterized
A
Condition that inspects the value of ServletRequest.getScheme()- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluateHttp(HttpServletRewrite event, EvaluationContext context) Get the underlyingParameterizedPatternParserfor thisSchemestatic SchemeCreate aConditionto inspect the current request scheme, comparing against the given pattern.voidsetParameterStore(ParameterStore store) Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpCondition
evaluateMethods inherited from class org.ocpsoft.rewrite.config.DefaultConditionBuilder
and, andNot, or, orNot
-
Method Details
-
matches
Create aConditionto inspect the current request scheme, comparing against the given pattern.The given pattern may be parameterized using the following format:
https
mailto
{scheme} {scheme}-custom
...- Parameters:
pattern-ParameterizedPatternspecifying theSchemeof the currentAddress.
-
evaluateHttp
- Specified by:
evaluateHttpin classHttpCondition
-
getExpression
Get the underlyingParameterizedPatternParserfor thisScheme -
getRequiredParameterNames
- Specified by:
getRequiredParameterNamesin interfaceParameterized
-
setParameterStore
- Specified by:
setParameterStorein interfaceParameterized
-