|
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.Header
public class Header
Responsible for asserting on HttpServletRequest.getHeader(String) values.
| Method Summary | |
|---|---|
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
|
static Header |
exists(java.lang.String name)
Return a Header condition that matches only against the existence of a header with a name matching the
given pattern. |
static Header |
matches(java.lang.String name,
java.lang.String value)
Return a Header condition that matches against both header name and values. |
static Header |
valueExists(java.lang.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.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 static Header matches(java.lang.String name,
java.lang.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(java.lang.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(java.lang.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 HttpCondition
|
rewrite-impl-servlet 1.0.2.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||