public abstract class CDN extends 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 and Type | Method and Description |
|---|---|
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)
|
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() |
protected CDN(String pattern)
public static CDNRelocate relocate(String pattern)
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 CDNRelocatepublic boolean evaluate(Rewrite event, EvaluationContext context)
public void perform(Rewrite event, EvaluationContext context)
public ParameterizedPatternParser getLocationExpression()
public ParameterizedPatternParser getResourcExpression()
public Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface ParameterizedCopyright © 2019 OCPsoft. All rights reserved.