|
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.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
| Constructor Summary | |
|---|---|
protected |
CDN(String pattern)
|
| Method Summary | |
|---|---|
boolean |
evaluate(Rewrite event,
EvaluationContext context)
|
String |
getId()
|
ParameterizedPatternParser |
getLocationExpression()
|
Set<String> |
getRequiredParameterNames()
|
ParameterizedPatternParser |
getResourcExpression()
|
void |
perform(Rewrite event,
EvaluationContext context)
|
static CDNRelocate |
relocate(String pattern)
The outward facing URL path to which this CDN will apply. |
void |
setId(String id)
Set the id of this Rule |
void |
setParameterStore(ParameterStore store)
|
CDN |
to(String location)
The new resource (real or virtual) to be served, either from a local context or remote CDN. |
String |
toString()
|
| 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 CDNRelocate relocate(String pattern)
CDN will apply.
public CDN to(String location)
CDNRelocate
to in interface CDNRelocate
public boolean evaluate(Rewrite event,
EvaluationContext context)
evaluate in interface Condition
public void perform(Rewrite event,
EvaluationContext context)
perform in interface Operationpublic String getId()
getId in interface Rulepublic void setId(String id)
Rule
public String toString()
toString in class Objectpublic ParameterizedPatternParser getLocationExpression()
public ParameterizedPatternParser getResourcExpression()
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 | |||||||||