public abstract class PathAndQuery extends HttpCondition implements Parameterized
Condition that inspects the value of HttpServletRewrite.getAddress() path and query string.| Modifier and Type | Method and Description |
|---|---|
static PathAndQuery |
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 PathAndQuery |
Set<String> |
getRequiredParameterNames() |
static PathAndQuery |
matches(String pattern)
Create a
Condition that compares the current Address.getPathAndQuery() to the given pattern. |
void |
setParameterStore(ParameterStore store) |
PathAndQuery |
withRequestBinding()
Bind each path
Parameter to the corresponding request parameter by name. |
evaluateand, andNot, or, orNotpublic static PathAndQuery matches(String pattern)
Condition that compares the current Address.getPathAndQuery() to the given pattern.
The given pattern may be parameterized:
/example?{param}=foo
/example/{param1}?bar={param2}&p=q
...
pattern - ParameterizedPattern matching the path and query.ConfigurationRuleParameterBuilder.where(String)public static PathAndQuery 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 PathAndQuery 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 PathAndQuerypublic Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface ParameterizedCopyright © 2016 OCPsoft. All rights reserved.