public class Header extends HttpCondition implements Parameterized
HttpServletRequest.getHeader(String) values.| Modifier and Type | Method and Description |
|---|---|
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. |
evaluatepublic 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 valuepublic boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
evaluateHttp in class HttpConditionpublic Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface ParameterizedCopyright © 2013 OCPsoft. All Rights Reserved.