public class Path 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 Path |
captureIn(String param)
Capture the entire path portion of the inbound
Address into the given parameter. |
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context) |
ParameterizedPatternParser |
getPathExpression()
Get the underlying
RegexParameterizedPatternBuilder for this Path |
Set<String> |
getRequiredParameterNames() |
static Path |
matches(String pattern)
Inspect the current request URL, comparing against the given pattern.
|
void |
setParameterStore(ParameterStore store) |
String |
toString() |
Path |
withRequestBinding()
Bind each path parameter to the corresponding request parameter by name.
|
evaluatepublic static Path matches(String pattern)
The given pattern may be parameterized using the following format:
/example/{param}
/example/{value}/sub/{value2}
... and so on
By default, matching parameter values are bound only to the EvaluationContext.
See also #where(String)
public static Path captureIn(String param)
Address into the given parameter.public Path withRequestBinding()
EvaluationContext.
See also #where(String)
public boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
evaluateHttp in class HttpConditionpublic ParameterizedPatternParser getPathExpression()
public Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface ParameterizedCopyright © 2013 OCPsoft. All Rights Reserved.