rewrite-config-servlet 2.0.0.Alpha2

org.ocpsoft.rewrite.servlet.config
Class IResource.ResourceParameter

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

public static class IResource.ResourceParameter
extends ParameterBuilder<IResource.ResourceParameter,String>
implements IResource.IResourceParameter


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ocpsoft.rewrite.servlet.config.IResource
IResource.IResourceParameter, IResource.ResourceParameter
 
Constructor Summary
IResource.ResourceParameter(IResource path, ParameterizedPatternParserParameter capture)
           
 
Method Summary
 ConditionBuilder and(Condition condition)
           
 ConditionBuilder andNot(Condition condition)
           
 boolean evaluate(Rewrite event, EvaluationContext context)
           
 String getName()
           
 ParameterizedPatternParser getResourceExpression()
           
 IResource.IResourceParameter matches(String string)
           
 ConditionBuilder or(Condition condition)
           
 ConditionBuilder orNot(Condition condition)
           
 IResource.ResourceParameter where(String param)
           
 IResource.ResourceParameter where(String param, Binding binding)
           
 
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

IResource.ResourceParameter

public IResource.ResourceParameter(IResource path,
                                   ParameterizedPatternParserParameter capture)
Method Detail

matches

public IResource.IResourceParameter matches(String string)
Specified by:
matches in interface IResource.IResourceParameter

getName

public String getName()
Specified by:
getName in interface Parameter<IResource.ResourceParameter,String>

where

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

where

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

getResourceExpression

public ParameterizedPatternParser getResourceExpression()
Specified by:
getResourceExpression in interface IResource

evaluate

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

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

rewrite-config-servlet 2.0.0.Alpha2

Copyright © 2012 OCPsoft. All Rights Reserved.