public class URL extends HttpCondition implements Parameterized
Condition that inspects the value of
org.ocpsoft.rewrite.servlet.http.event.HttpServletRewrite#getRequestPath()| Modifier and Type | Method and Description |
|---|---|
static URL |
captureIn(String param) |
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context) |
ParameterizedPatternParser |
getPathExpression() |
Set<String> |
getRequiredParameterNames() |
ParameterizedPatternParser |
getSchemeExpression()
Get the underlying
RegexParameterizedPatternBuilder for this URL |
static URL |
matches(String pattern)
Inspect the current request URL, comparing against the given pattern.
|
void |
setParameterStore(ParameterStore store) |
String |
toString() |
URL |
withRequestBinding()
Bind each URL parameter to the corresponding request parameter by name.
|
evaluatepublic static URL matches(String pattern)
The given pattern may be parameterized using the following format:
INBOUND:
/context-path/{param}?foo={bar} OUTBOUND:
/context-path/{param}/{param2}?foo={bar}&cab={caz}
... and so on
http://domain.com/context-path/{param}?foo={bar}
/context-path/{param}/{param2}?foo={bar}&cab={caz}
... and so on
By default, matching parameter values are bound only to the EvaluationContext.
See also #where(String)
public URL withRequestBinding()
EvaluationContext.
See also #where(String)
public boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
evaluateHttp in class HttpConditionpublic ParameterizedPatternParser getSchemeExpression()
public ParameterizedPatternParser getPathExpression()
public Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface ParameterizedCopyright © 2013 OCPsoft. All Rights Reserved.