public abstract class Path extends HttpCondition implements Parameterized
Condition that inspects the value of HttpServletRewrite#getRequestPath()| Modifier and Type | Method and Description |
|---|---|
static Path |
captureIn(String param)
Capture the entire path portion of the
Address into the given Parameter. |
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context) |
ParameterizedPatternParser |
getExpression()
Get the underlying
ParameterizedPattern for this Path |
Set<String> |
getRequiredParameterNames() |
static Path |
matches(String pattern)
Create a
Condition that compares the current Address.getPath() to the given pattern. |
void |
setParameterStore(ParameterStore store) |
Path |
withRequestBinding()
Bind each path
Parameter to the corresponding request parameter by name. |
evaluateand, andNot, or, orNotpublic static Path matches(String pattern)
Condition that compares the current Address.getPath() to the given pattern.
The given pattern may be parameterized:
/example/{param}
/example/{param1}/sub/{param2}
...
pattern - ParameterizedPattern matching the path.ConfigurationRuleParameterBuilder.where(String)public static Path captureIn(String param)
Address into the given Parameter.param - the name of the Parameter to which the entire path portion of the Address will be
bound.public Path withRequestBinding()
Parameter to the corresponding request parameter by name.
ConfigurationRuleParameterBuilder#where(String)} {@link HttpServletRequest#getParameterMap()}
{@link RequestParameterProvider}public boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
evaluateHttp in class HttpConditionpublic ParameterizedPatternParser getExpression()
ParameterizedPattern for this Pathpublic Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface ParameterizedCopyright © 2018 OCPsoft. All rights reserved.