|
rewrite-config-servlet 2.0.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ocpsoft.rewrite.config.DefaultConditionBuilder
org.ocpsoft.rewrite.servlet.config.HttpCondition
org.ocpsoft.rewrite.servlet.config.Query
public abstract class Query
A Condition that inspects the value of HttpServletRewrite#getRequestQueryString()
| Constructor Summary | |
|---|---|
Query()
|
|
| Method Summary | |
|---|---|
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(). |
| Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpCondition |
|---|
evaluate, evaluateHttp |
| Methods inherited from class org.ocpsoft.rewrite.config.DefaultConditionBuilder |
|---|
and, andNot, or, orNot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.ocpsoft.rewrite.param.Parameterized |
|---|
getRequiredParameterNames, setParameterStore |
| Constructor Detail |
|---|
public Query()
| Method Detail |
|---|
public 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")
...
Forward.to("/{param}/page.jsp")
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)
|
rewrite-config-servlet 2.0.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||