Class URL
java.lang.Object
org.ocpsoft.rewrite.config.DefaultConditionBuilder
org.ocpsoft.rewrite.servlet.config.HttpCondition
org.ocpsoft.rewrite.servlet.config.URL
- All Implemented Interfaces:
Condition,ConditionBuilder,Parameterized
A
Condition that inspects the entire value of the current Address.- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionstatic URLbooleanevaluateHttp(HttpServletRewrite event, EvaluationContext context) Get the underlyingRegexParameterizedPatternBuilderfor thisURLstatic URLCreate aConditionthat inspects the entire value of the currentAddress, comparing against the given pattern.voidsetParameterStore(ParameterStore store) Bind eachParametervalue of the currentAddressto 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 inspects the entire value of the currentAddress, comparing against the given pattern.The given pattern may be parameterized:
INBOUND:
/path/store?item=1436 /path/store?item={itemId}
/path/{store}?item={itemId}&category={catId}
...OUTBOUND:
http://domain.com/path/store.html?item=1436 http://domain.com/path/store?item={itemId}
/path/{store}?item={itemId}&category={catId}
...- Parameters:
url-ParameterizedPatternto which the currentAddressmust match.
-
captureIn
-
withRequestBinding
Bind eachParametervalue of the currentAddressto the corresponding request parameter by name. Only takes affect onInboundRewriteevents. -
evaluateHttp
- Specified by:
evaluateHttpin classHttpCondition
-
getSchemeExpression
-
getPathExpression
-
getRequiredParameterNames
- Specified by:
getRequiredParameterNamesin interfaceParameterized
-
setParameterStore
- Specified by:
setParameterStorein interfaceParameterized
-