Class Domain
java.lang.Object
org.ocpsoft.rewrite.config.DefaultConditionBuilder
org.ocpsoft.rewrite.servlet.config.HttpCondition
org.ocpsoft.rewrite.servlet.config.Domain
- All Implemented Interfaces:
Condition,ConditionBuilder,Parameterized
A
Condition that inspects the value of ServletRequest.getServerName()- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluateHttp(HttpServletRewrite event, EvaluationContext context) Get the underlyingParameterizedPatternParserfor thisDomainstatic DomainCreate aDomaincondition to inspect the currentAddress.getDomain().voidsetParameterStore(ParameterStore store) toString()Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpCondition
evaluateMethods inherited from class org.ocpsoft.rewrite.config.DefaultConditionBuilder
and, andNot, or, orNot
-
Method Details
-
matches
Create aDomaincondition to inspect the currentAddress.getDomain().The given pattern may be parameterized:
example.com {domain}.com
www.{domain}.{suffix}
... and so on- Parameters:
pattern-ParameterizedPatternmatching the domain name.
-
evaluateHttp
- Specified by:
evaluateHttpin classHttpCondition
-
getExpression
Get the underlyingParameterizedPatternParserfor thisDomain -
toString
-
getRequiredParameterNames
- Specified by:
getRequiredParameterNamesin interfaceParameterized
-
setParameterStore
- Specified by:
setParameterStorein interfaceParameterized
-