public class RequestParameter extends HttpCondition implements Parameterized
Condition that inspects values returned by ServletRequest.getParameterMap()| Modifier and Type | Class and Description |
|---|---|
static class |
RequestParameter.AllRequestParameters |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context) |
static RequestParameter |
exists(String name)
Return a
Header condition that matches only against the existence of a header with a name matching the
given pattern. |
ParameterizedPatternParser |
getNameExpression() |
Set<String> |
getRequiredParameterNames() |
ParameterizedPatternParser |
getValueExpression() |
static RequestParameter |
matches(String name,
String value)
Return a
Header condition that matches against both header name and values. |
static RequestParameter |
matchesAll(String name,
String value) |
void |
setParameterStore(ParameterStore store) |
String |
toString() |
static RequestParameter |
valueExists(String value)
Return a
Header condition that matches only against the existence of a header with value matching the
given pattern. |
evaluatepublic static RequestParameter matches(String name, String value)
Header condition that matches against both header name and values.
See also: HttpServletRequest.getHeader(String)
name - Regular expression matching the header namevalue - Regular expression matching the header valuepublic static RequestParameter matchesAll(String name, String value)
public static RequestParameter exists(String name)
Header condition that matches only against the existence of a header with a name matching the
given pattern. The header value is ignored.
See also: HttpServletRequest.getHeader(String)
name - Regular expression matching the header namepublic static RequestParameter valueExists(String value)
Header condition that matches only against the existence of a header with value matching the
given pattern. The header name is ignored.value - Regular expression matching the header valuepublic boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
evaluateHttp in class HttpConditionpublic ParameterizedPatternParser getNameExpression()
public ParameterizedPatternParser getValueExpression()
public Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface ParameterizedCopyright © 2013 OCPsoft. All Rights Reserved.