|
rewrite-config-servlet 2.0.0.Alpha2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ocpsoft.rewrite.servlet.config.rule.CDN
public class CDN
Rule that creates a bi-directional rewrite rule between an externally facing URL
and an internal server resource URL
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ocpsoft.rewrite.servlet.config.rule.ICDN |
|---|
ICDN.CDNParameter, ICDN.ICDNParameter |
| Constructor Summary | |
|---|---|
protected |
CDN(String pattern)
|
| Method Summary | |
|---|---|
ConditionBuilder |
and(Condition condition)
|
ConditionBuilder |
andNot(Condition condition)
|
boolean |
evaluate(Rewrite event,
EvaluationContext context)
|
String |
getId()
|
ParameterizedPatternParser |
getLocationExpression()
|
ParameterizedPatternParser |
getResourcExpression()
|
ConditionBuilder |
or(Condition condition)
|
ConditionBuilder |
orNot(Condition condition)
|
ICDN |
perform(Operation operation)
Define additional Operation instances to be performed when this rule matches successfully. |
void |
perform(Rewrite event,
EvaluationContext context)
|
static ICDN |
relocate(String pattern)
The outward facing URL path to which this CDN will apply. |
ICDN |
to(String location)
The new resource (real or virtual) to be served, either from a local context or remote CDN. |
String |
toString()
|
ICDN |
when(Condition condition)
Define additional Condition instances that must be satisfied in order for this rule to match successfully. |
ICDN.CDNParameter |
where(String parameter)
|
ICDN.CDNParameter |
where(String param,
Binding binding)
|
ICDN |
withId(String id)
Set the ID of this Join. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected CDN(String pattern)
| Method Detail |
|---|
public static ICDN relocate(String pattern)
CDN will apply.
public ICDN to(String location)
ICDN
to in interface ICDN
public boolean evaluate(Rewrite event,
EvaluationContext context)
evaluate in interface Conditionevaluate in interface Rule
public void perform(Rewrite event,
EvaluationContext context)
perform in interface Operationperform in interface Rulepublic ICDN.CDNParameter where(String parameter)
where in interface Parameterized<ICDN,ICDN.CDNParameter,String>
public ICDN.CDNParameter where(String param,
Binding binding)
where in interface Parameterized<ICDN,ICDN.CDNParameter,String>public String getId()
getId in interface Rulepublic ICDN when(Condition condition)
ICDNCondition instances that must be satisfied in order for this rule to match successfully.
when in interface ICDNpublic ICDN perform(Operation operation)
ICDNOperation instances to be performed when this rule matches successfully.
perform in interface ICDNpublic ICDN withId(String id)
ICDNJoin.
withId in interface ICDNpublic String toString()
toString in class Objectpublic ConditionBuilder and(Condition condition)
and in interface ConditionBuilderpublic ConditionBuilder andNot(Condition condition)
andNot in interface ConditionBuilderpublic ConditionBuilder or(Condition condition)
or in interface ConditionBuilderpublic ConditionBuilder orNot(Condition condition)
orNot in interface ConditionBuilderpublic ParameterizedPatternParser getLocationExpression()
getLocationExpression in interface ICDNpublic ParameterizedPatternParser getResourcExpression()
getResourcExpression in interface ICDN
|
rewrite-config-servlet 2.0.0.Alpha2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||