|
rewrite-config-servlet 2.0.0.Beta3 | |||||||||
| 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.Domain
public class Domain
A Condition that inspects the value of ServletRequest.getServerName()
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpCondition |
|---|
evaluate |
| Methods inherited from class org.ocpsoft.rewrite.config.DefaultConditionBuilder |
|---|
and, andNot, or, orNot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Domain matches(String pattern)
Domain condition to inspect the current Address.getDomain().
The given pattern may be parameterized using the following format:
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 Domain
public String toString()
toString in class Objectpublic Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface Parameterized
|
rewrite-config-servlet 2.0.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||