rewrite-impl-servlet 1.0.4.Final

org.ocpsoft.rewrite.servlet.config
Class IPath.PathParameter

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

public static class IPath.PathParameter
extends ParameterBuilder<IPath.PathParameter,String>
implements IPath.IPathParameter


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ocpsoft.rewrite.servlet.config.IPath
IPath.IPathParameter, IPath.PathParameter
 
Constructor Summary
IPath.PathParameter(IPath path, RegexCapture capture)
           
 
Method Summary
 ConditionBuilder and(Condition condition)
           
 ConditionBuilder andNot(Condition condition)
           
 boolean evaluate(Rewrite event, EvaluationContext context)
           
 String getName()
           
 ParameterizedPattern getPathExpression()
           
 IPath.PathParameter matches(String string)
           
 ConditionBuilder or(Condition condition)
           
 ConditionBuilder orNot(Condition condition)
           
 IPath.PathParameter where(String param)
           
 IPath.PathParameter where(String param, Binding binding)
           
 IPath withRequestBinding()
           
 
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

IPath.PathParameter

public IPath.PathParameter(IPath path,
                           RegexCapture capture)
Method Detail

matches

public IPath.PathParameter matches(String string)
Specified by:
matches in interface IPath.IPathParameter

getName

public String getName()
Specified by:
getName in interface Parameter<IPath.PathParameter,String>

withRequestBinding

public IPath withRequestBinding()
Specified by:
withRequestBinding in interface IPath

where

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

where

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

evaluate

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

getPathExpression

public ParameterizedPattern getPathExpression()
Specified by:
getPathExpression in interface IPath

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-impl-servlet 1.0.4.Final

Copyright © 2012 OCPsoft. All Rights Reserved.