public abstract class Query extends HttpCondition implements Parameterized
Condition that inspects the value of HttpServletRewrite#getRequestQueryString()| Constructor and Description |
|---|
Query() |
| Modifier and Type | Method and Description |
|---|---|
static Query |
matches(String query)
Create a
Condition matching the current Address.getQuery(). |
static Query |
parameterExists(String name)
Create a
Condition asserting the existence of specific parameter names within the current
Address.getQuery() |
static Query |
valueExists(String valuePattern)
Create a
Condition asserting the existence of specific parameter values within the current
Address.getQuery(). |
evaluate, evaluateHttpand, andNot, or, orNotclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequiredParameterNames, setParameterStorepublic static Query matches(String query)
Condition matching the current Address.getQuery().
The given pattern may be parameterized:
?param=value
?param={param}
?param={param}&foo=bar
...
pattern - ParameterizedPattern matching the query string of the current Address.ConfigurationRuleParameterBuilder.where(String)public static Query parameterExists(String name)
Condition asserting the existence of specific parameter names within the current
Address.getQuery()
The given parameter name is automatically parameterized:
Query.paramterExists("param")
...
pattern - name of the Parameter matching query parameter names within the current
Address.getQuery().ConfigurationRuleParameterBuilder.where(String)public static Query valueExists(String valuePattern)
Condition asserting the existence of specific parameter values within the current
Address.getQuery().pattern - ParameterizedPattern matching query parameter values of the current
Address.getQuery().ConfigurationRuleParameterBuilder.where(String)Copyright © 2013 OCPsoft. All Rights Reserved.