|
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.Header
public class Header
Responsible for asserting on HttpServletRequest.getHeader(String) values.
| Method Summary | |
|---|---|
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
|
static Header |
exists(String name)
Return a Header condition that matches only against the existence of a header with a name matching the
given pattern. |
Set<String> |
getRequiredParameterNames()
|
static Header |
matches(String name,
String value)
Return a Header condition that matches against both header name and values. |
void |
setParameterStore(ParameterStore store)
|
static Header |
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, toString, wait, wait, wait |
| Method Detail |
|---|
public static Header 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 Header 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 Header 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 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 | |||||||||