public class CDN extends Object implements Rule, CDNRelocate, Parameterized
Rule that creates a bi-directional rewrite rule between an externally facing URL
and an internal server resource URL| 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)
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() |
protected CDN(String pattern)
public static CDNRelocate relocate(String pattern)
CDN will apply.public CDN to(String location)
CDNRelocateto 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 © 2013 OCPsoft. All Rights Reserved.