|
rewrite-impl-servlet 1.0.5.Final | |||||||||
| 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()
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ocpsoft.rewrite.servlet.config.IDomain |
|---|
IDomain.DomainParameter, IDomain.IDomainParameter |
| Method Summary | |
|---|---|
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
|
ParameterizedPattern |
getDomainExpression()
|
ParameterizedPattern |
getExpression()
Get the underlying ParameterizedPattern for this Domain |
static Domain |
matches(String pattern)
Inspect the current request domain, comparing against the given pattern. |
String |
toString()
|
IDomain.DomainParameter |
where(String param)
|
IDomain.DomainParameter |
where(String param,
Binding binding)
|
IDomain |
withRequestBinding()
Bind named parameters to the request parameter map. |
| 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 |
| Methods inherited from interface org.ocpsoft.rewrite.config.ConditionBuilder |
|---|
and, andNot, or, orNot |
| Methods inherited from interface org.ocpsoft.rewrite.config.Condition |
|---|
evaluate |
| Method Detail |
|---|
public static Domain 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 IDomain.DomainParameter where(String param)
where in interface Parameterized<IDomain,IDomain.DomainParameter,String>
public IDomain.DomainParameter where(String param,
Binding binding)
where in interface Parameterized<IDomain,IDomain.DomainParameter,String>
public boolean evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
evaluateHttp in class HttpConditionpublic ParameterizedPattern getExpression()
ParameterizedPattern for this Domain
See also: where(String)
public String toString()
toString in class Objectpublic IDomain withRequestBinding()
IDomain
withRequestBinding in interface IDomainpublic ParameterizedPattern getDomainExpression()
getDomainExpression in interface IDomain
|
rewrite-impl-servlet 1.0.5.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||