|
rewrite-config-servlet 2.0.0.Alpha6 | |||||||||
| 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.Hostname
public class Hostname
A Condition that inspects the value of ServletRequest.getServerName()
| Method Summary | |
|---|---|
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
|
ParameterizedPatternParser |
getDomainExpression()
|
ParameterizedPatternParser |
getExpression()
Get the underlying RegexParameterizedPatternBuilder for this Hostname |
Set<String> |
getRequiredParameterNames()
|
static Hostname |
matches(String pattern)
Inspect the current request domain, comparing against the given pattern. |
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, create, or, orNot, wrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Hostname matches(String pattern)
The given pattern may be parameterized using the following format:
example.com
{domain}.com
www.{domain}.{suffix}
... and so on
By default, matching parameter values are bound to the EvaluationContext. See
also #where(String)
public boolean evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
evaluateHttp in class HttpConditionpublic ParameterizedPatternParser getExpression()
RegexParameterizedPatternBuilder for this Hostname
See also: #where(String)
public String toString()
toString in class Objectpublic ParameterizedPatternParser getDomainExpression()
public Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface Parameterized
|
rewrite-config-servlet 2.0.0.Alpha6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||