|
rewrite-config-servlet 2.0.0.Alpha6 | |||||||||
| 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.RequestParameter
public class RequestParameter
A Condition that inspects values returned by ServletRequest.getParameterMap()
| Nested Class Summary | |
|---|---|
static class |
RequestParameter.AllRequestParameters
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpCondition |
|---|
evaluate |
| 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, wait, wait, wait |
| Method Detail |
|---|
public 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 value
public 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 value
public boolean evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
evaluateHttp in class HttpConditionpublic ParameterizedPatternParser getNameExpression()
public ParameterizedPatternParser getValueExpression()
public String toString()
toString in class Objectpublic Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface Parameterized
|
rewrite-config-servlet 2.0.0.Alpha6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||