Class Path
java.lang.Object
org.ocpsoft.rewrite.config.DefaultConditionBuilder
org.ocpsoft.rewrite.servlet.config.HttpCondition
org.ocpsoft.rewrite.servlet.config.Path
- All Implemented Interfaces:
Condition,ConditionBuilder,Parameterized
A
Condition that inspects the value of HttpServletRewrite#getRequestPath()- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionstatic PathCapture the entire path portion of theAddressinto the givenParameter.booleanevaluateHttp(HttpServletRewrite event, EvaluationContext context) Get the underlyingParameterizedPatternfor thisPathstatic PathCreate aConditionthat compares the currentAddress.getPath()to the given pattern.voidsetParameterStore(ParameterStore store) Bind each pathParameterto the corresponding request parameter by name.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 aConditionthat compares the currentAddress.getPath()to the given pattern.The given pattern may be parameterized:
/example/{param}
/example/{param1}/sub/{param2}
...- Parameters:
pattern-ParameterizedPatternmatching the path.- See Also:
-
captureIn
Capture the entire path portion of theAddressinto the givenParameter.- Parameters:
param- the name of theParameterto which the entire path portion of theAddresswill be bound.
-
withRequestBinding
Bind each pathParameterto the corresponding request parameter by name. -
evaluateHttp
- Specified by:
evaluateHttpin classHttpCondition
-
getExpression
Get the underlyingParameterizedPatternfor thisPath -
getRequiredParameterNames
- Specified by:
getRequiredParameterNamesin interfaceParameterized
-
setParameterStore
- Specified by:
setParameterStorein interfaceParameterized
-