|
rewrite-config-servlet 2.0.0.Alpha2 | |||||||||
| 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
org.ocpsoft.rewrite.servlet.http.event.HttpServletRewrite#getRequestQueryString()
| Field Summary | |
|---|---|
protected DefaultBindable<?> |
bindable
|
| Constructor Summary | |
|---|---|
Query()
|
|
| Method Summary | |
|---|---|
Query |
bindsTo(Binding binding)
Bind the values of this Query query to the given Binding. |
List<Binding> |
getBindings()
|
static Query |
matches(String queryPattern)
Return a new Condition matching against the entire
HttpServletRequest.getQueryString() |
static Query |
parameterExists(String namePattern)
Return a new Condition matching against the existence of specific parameters
within HttpServletRequest.getQueryString() |
static Query |
valueExists(String valuePattern)
Return a new Condition matching against the existence of a parameter values
within HttpServletRequest.getQueryString() |
| Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpCondition |
|---|
evaluate, evaluateHttp |
| Methods inherited from class org.ocpsoft.rewrite.config.DefaultConditionBuilder |
|---|
and, andNot, create, or, orNot, wrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final DefaultBindable<?> bindable
| Constructor Detail |
|---|
public Query()
| Method Detail |
|---|
public Query bindsTo(Binding binding)
Query query to the given Binding.
bindsTo in interface Bindable<Query>public List<Binding> getBindings()
getBindings in interface Bindable<Query>public static Query matches(String queryPattern)
Condition matching against the entire
HttpServletRequest.getQueryString()
This value may be bound using {param} statements.
See also: bindsTo(Binding)
public static Query parameterExists(String namePattern)
Condition matching against the existence of specific parameters
within HttpServletRequest.getQueryString()
The values of all matching parameters may be bound. By default, matching values are bound to the
EvaluationContext, and are stored by parameter name.
See also: bindsTo(Binding)
public static Query valueExists(String valuePattern)
Condition matching against the existence of a parameter values
within HttpServletRequest.getQueryString()
The values of all matching parameter values may be bound. By default, matching values are bound to the
EvaluationContext.
See also: bindsTo(Binding)
|
rewrite-config-servlet 2.0.0.Alpha2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||