public abstract class CDN extends java.lang.Object implements Rule, CDNRelocate, Parameterized
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.| Modifier | Constructor and Description |
|---|---|
protected |
CDN(java.lang.String pattern) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(Rewrite event,
EvaluationContext context) |
java.lang.String |
getId() |
ParameterizedPatternParser |
getLocationExpression() |
java.util.Set<java.lang.String> |
getRequiredParameterNames() |
ParameterizedPatternParser |
getResourcExpression() |
void |
perform(Rewrite event,
EvaluationContext context) |
static CDNRelocate |
relocate(java.lang.String pattern)
|
void |
setId(java.lang.String id)
Set the id of this
Rule |
void |
setParameterStore(ParameterStore store) |
CDN |
to(java.lang.String location)
The new resource
Address to serve as an external Substitute for the configured internal resource
Path. |
java.lang.String |
toString() |
public static CDNRelocate relocate(java.lang.String pattern)
public CDN to(java.lang.String location)
CDNRelocateAddress to serve as an external Substitute for the configured internal resource
Path. See Substitute for additional configuration details.to in interface CDNRelocatepublic boolean evaluate(Rewrite event, EvaluationContext context)
public void perform(Rewrite event, EvaluationContext context)
public void setId(java.lang.String id)
Rulepublic java.lang.String toString()
toString in class java.lang.Objectpublic ParameterizedPatternParser getLocationExpression()
public ParameterizedPatternParser getResourcExpression()
public java.util.Set<java.lang.String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface ParameterizedCopyright © 2014 OCPsoft. All Rights Reserved.