rewrite-config-servlet 2.0.0.Alpha2

org.ocpsoft.rewrite.servlet.config.rule
Class ICDN.CDNParameter

java.lang.Object
  extended by org.ocpsoft.rewrite.bind.DefaultBindable<PARAMTYPE>
      extended by org.ocpsoft.rewrite.param.ParameterBuilder<ICDN.CDNParameter,String>
          extended by org.ocpsoft.rewrite.servlet.config.rule.ICDN.CDNParameter
All Implemented Interfaces:
Bindable<ICDN.CDNParameter>, Converter<Object>, HasConverter<ICDN.CDNParameter>, HasValidator<ICDN.CDNParameter>, Validator<Object>, Condition, ConditionBuilder, ConfigurationElement, Operation, Rule, Constrainable<ICDN.CDNParameter,String>, Parameter<ICDN.CDNParameter,String>, Parameterized<ICDN,ICDN.CDNParameter,String>, Transformable<ICDN.CDNParameter,String>, ICDN, ICDN.ICDNParameter
Enclosing interface:
ICDN

public static class ICDN.CDNParameter
extends ParameterBuilder<ICDN.CDNParameter,String>
implements ICDN.ICDNParameter


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ocpsoft.rewrite.servlet.config.rule.ICDN
ICDN.CDNParameter, ICDN.ICDNParameter
 
Constructor Summary
ICDN.CDNParameter(ICDN join, ParameterizedPatternParserParameter... captures)
           
 
Method Summary
 ConditionBuilder and(Condition condition)
           
 ConditionBuilder andNot(Condition condition)
           
 boolean evaluate(Rewrite event, EvaluationContext context)
           
 String getId()
           
 ParameterizedPatternParser getLocationExpression()
           
 String getName()
           
 ParameterizedPatternParser getResourcExpression()
           
 ICDN.ICDNParameter matches(String regex)
          Specify the pattern to which this Parameter must match.
 ConditionBuilder or(Condition condition)
           
 ConditionBuilder orNot(Condition condition)
           
 ICDN perform(Operation operation)
          Define additional Operation instances to be performed when this rule matches successfully.
 void perform(Rewrite event, EvaluationContext context)
           
 ICDN to(String location)
          The new resource (real or virtual) to be served, either from a local context or remote CDN.
 ICDN when(Condition condition)
          Define additional Condition instances that must be satisfied in order for this rule to match successfully.
 ICDN.CDNParameter where(String param)
           
 ICDN.CDNParameter where(String param, Binding binding)
           
 ICDN withId(String id)
          Set the ID of this Join.
 
Methods inherited from class org.ocpsoft.rewrite.param.ParameterBuilder
bindsTo, constrainedBy, convert, convertedBy, convertedBy, getConstraints, getConverter, getTransforms, getValidator, toString, transformedBy, validate, validatedBy, validatedBy
 
Methods inherited from class org.ocpsoft.rewrite.bind.DefaultBindable
getBindings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ocpsoft.rewrite.bind.Bindable
bindsTo, getBindings
 
Methods inherited from interface org.ocpsoft.rewrite.param.Constrainable
constrainedBy, getConstraints
 
Methods inherited from interface org.ocpsoft.rewrite.param.Transformable
getTransforms, transformedBy
 
Methods inherited from interface org.ocpsoft.rewrite.bind.Converter
convert
 
Methods inherited from interface org.ocpsoft.rewrite.bind.Validator
validate
 
Methods inherited from interface org.ocpsoft.rewrite.bind.HasValidator
getValidator, validatedBy, validatedBy
 
Methods inherited from interface org.ocpsoft.rewrite.bind.HasConverter
convertedBy, convertedBy, getConverter
 

Constructor Detail

ICDN.CDNParameter

public ICDN.CDNParameter(ICDN join,
                         ParameterizedPatternParserParameter... captures)
Method Detail

matches

public ICDN.ICDNParameter matches(String regex)
Description copied from interface: ICDN.ICDNParameter
Specify the pattern to which this Parameter must match.

Specified by:
matches in interface ICDN.ICDNParameter

getName

public String getName()
Specified by:
getName in interface Parameter<ICDN.CDNParameter,String>

where

public ICDN.CDNParameter where(String param)
Specified by:
where in interface Parameterized<ICDN,ICDN.CDNParameter,String>

where

public ICDN.CDNParameter where(String param,
                               Binding binding)
Specified by:
where in interface Parameterized<ICDN,ICDN.CDNParameter,String>

evaluate

public boolean evaluate(Rewrite event,
                        EvaluationContext context)
Specified by:
evaluate in interface Condition
Specified by:
evaluate in interface Rule

getLocationExpression

public ParameterizedPatternParser getLocationExpression()
Specified by:
getLocationExpression in interface ICDN

getResourcExpression

public ParameterizedPatternParser getResourcExpression()
Specified by:
getResourcExpression in interface ICDN

and

public ConditionBuilder and(Condition condition)
Specified by:
and in interface ConditionBuilder

andNot

public ConditionBuilder andNot(Condition condition)
Specified by:
andNot in interface ConditionBuilder

or

public ConditionBuilder or(Condition condition)
Specified by:
or in interface ConditionBuilder

orNot

public ConditionBuilder orNot(Condition condition)
Specified by:
orNot in interface ConditionBuilder

getId

public String getId()
Specified by:
getId in interface Rule

perform

public void perform(Rewrite event,
                    EvaluationContext context)
Specified by:
perform in interface Operation
Specified by:
perform in interface Rule

to

public ICDN to(String location)
Description copied from interface: ICDN
The new resource (real or virtual) to be served, either from a local context or remote CDN.

Specified by:
to in interface ICDN

perform

public ICDN perform(Operation operation)
Description copied from interface: ICDN
Define additional Operation instances to be performed when this rule matches successfully.

Specified by:
perform in interface ICDN

when

public ICDN when(Condition condition)
Description copied from interface: ICDN
Define additional Condition instances that must be satisfied in order for this rule to match successfully.

Specified by:
when in interface ICDN

withId

public ICDN withId(String id)
Description copied from interface: ICDN
Set the ID of this Join.

Specified by:
withId in interface ICDN

rewrite-config-servlet 2.0.0.Alpha2

Copyright © 2012 OCPsoft. All Rights Reserved.