|
rewrite-impl-servlet 1.0.2.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ocpsoft.rewrite.config.ConditionBuilder
org.ocpsoft.rewrite.servlet.config.HttpCondition
org.ocpsoft.rewrite.servlet.config.RequestParameter
public class RequestParameter
A Condition that inspects values returned by ServletRequest.getParameterMap()
| Method Summary | |
|---|---|
RequestParameter |
bindsTo(Binding binding)
Bind the values of this RequestParameter query to the given Binding. |
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
|
static RequestParameter |
exists(java.lang.String name)
Return a RequestParameter condition that matches only against the existence of a parameter with the given
name. |
static RequestParameter |
existsMatching(java.lang.String nameRegex)
Return a RequestParameter condition that matches only against the existence of a parameter with a name
matching the given pattern. |
static RequestParameter |
matches(java.lang.String nameRegex,
java.lang.String valueRegex)
Return a RequestParameter condition that matches against both parameter name and values. |
static RequestParameter |
valueExists(java.lang.String valueRegex)
Return a RequestParameter condition that matches only against the existence of a parameter with value
matching the given pattern. |
| Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpCondition |
|---|
evaluate |
| Methods inherited from class org.ocpsoft.rewrite.config.ConditionBuilder |
|---|
and, andNot, or, orNot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public RequestParameter bindsTo(Binding binding)
RequestParameter query to the given Binding.
public static RequestParameter matches(java.lang.String nameRegex,
java.lang.String valueRegex)
RequestParameter condition that matches against both parameter name and values.
Matched parameter values may be bound. By default, matching values are bound to the EvaluationContext.
See also: bindsTo(Binding)
nameRegex - Regular expression matching the parameter namevalueRegex - Regular expression matching the parameter valuepublic static RequestParameter exists(java.lang.String name)
RequestParameter condition that matches only against the existence of a parameter with the given
name. The parameter value is ignored.
Values of the matching parameter may be bound. By default, matching values are bound to the
EvaluationContext.
See also: bindsTo(Binding)
name - The parameter namepublic static RequestParameter existsMatching(java.lang.String nameRegex)
RequestParameter condition that matches only against the existence of a parameter with a name
matching the given pattern. The parameter value is ignored.
Values of matching parameters may be bound. By default, matching values are bound to the EvaluationContext.
See also: bindsTo(Binding)
nameRegex - Regular expression matching the parameter namepublic static RequestParameter valueExists(java.lang.String valueRegex)
RequestParameter condition that matches only against the existence of a parameter with value
matching the given pattern. The parameter name is ignored.
Matching values may be bound. By default, matching values are bound to the EvaluationContext.
See also: bindsTo(Binding)
valueRegex - Regular expression matching the parameter value
public boolean evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
evaluateHttp in class HttpCondition
|
rewrite-impl-servlet 1.0.2.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||