public class Domain extends HttpCondition implements Parameterized
Condition that inspects the value of ServletRequest.getServerName()| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context) |
ParameterizedPatternParser |
getExpression()
Get the underlying
ParameterizedPatternParser for this Domain |
Set<String> |
getRequiredParameterNames() |
static Domain |
matches(String pattern)
Create a
Domain condition to inspect the current Address.getDomain(). |
void |
setParameterStore(ParameterStore store) |
String |
toString() |
evaluateand, andNot, or, orNotpublic static Domain matches(String pattern)
Domain condition to inspect the current Address.getDomain().
The given pattern may be parameterized:
example.com
{domain}.com
www.{domain}.{suffix}
... and so on
pattern - ParameterizedPattern matching the domain name.ConfigurationRuleParameterBuilder#where(String)} {@link HttpServletRequest#getServerName()}public boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
evaluateHttp in class HttpConditionpublic ParameterizedPatternParser getExpression()
ParameterizedPatternParser for this Domainpublic Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface ParameterizedCopyright © 2015 OCPsoft. All Rights Reserved.