|
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.servlet.config.rule.CDN
public class CDN
A Rule that creates a bi-directional relationship between an externally facing Address and an
internal server resource Address for the purposes of using a Content Distribution Network.
| 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)
Create a Rule specifying the outward facing 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 Address to serve as an external Substitute for the configured internal resource
Path. |
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)
Rule specifying the outward facing Path to which this CDN will apply. See
Path for additional configuration details.
public CDN to(String location)
CDNRelocateAddress to serve as an external Substitute for the configured internal resource
Path. See Substitute for additional configuration details.
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.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||