rewrite-impl-servlet 1.0.5.Final

org.ocpsoft.rewrite.servlet.config.rule
Class IJoin.JoinParameter

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

public static class IJoin.JoinParameter
extends ParameterBuilder<IJoin.JoinParameter,String>
implements IJoin.IJoinParameter


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ocpsoft.rewrite.servlet.config.rule.IJoin
IJoin.IJoinParameter, IJoin.JoinParameter
 
Constructor Summary
IJoin.JoinParameter(IJoin join, RegexCapture... captures)
           
 
Method Summary
 ConditionBuilder and(Condition condition)
           
 ConditionBuilder andNot(Condition condition)
           
 boolean evaluate(Rewrite event, EvaluationContext context)
           
 String getId()
           
 String getName()
           
 ParameterizedPattern getPathExpression()
           
 ParameterizedPattern getResourcexpression()
           
 IJoin.IJoinParameter matches(String string)
          Specify the pattern to which this Parameter must match.
 ConditionBuilder or(Condition condition)
           
 ConditionBuilder orNot(Condition condition)
           
 IJoin perform(Operation operation)
          Define additional Operation instances to be performed when this rule matches successfully.
 void perform(Rewrite event, EvaluationContext context)
           
 IJoin to(String resource)
          The internal server resource (real or virtual) to be served.
 IJoin when(Condition condition)
          Define additional Condition instances that must be satisfied in order for this rule to matche successfully.
 IJoin.JoinParameter where(String param)
           
 IJoin.JoinParameter where(String param, Binding binding)
           
 IJoin withId(String id)
          Set the ID of this Join.
 IJoin withInboundCorrection()
          Redirect inbound requests for the internal resource to the outward facing URL instead.
 IJoin withRequestBinding()
          Bind inbound {parameter} values to the ServletRequest.getParameterMap(), by name.
 
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

IJoin.JoinParameter

public IJoin.JoinParameter(IJoin join,
                           RegexCapture... captures)
Method Detail

matches

public IJoin.IJoinParameter matches(String string)
Description copied from interface: IJoin.IJoinParameter
Specify the pattern to which this Parameter must match.

Specified by:
matches in interface IJoin.IJoinParameter

getName

public String getName()
Specified by:
getName in interface Parameter<IJoin.JoinParameter,String>

withRequestBinding

public IJoin withRequestBinding()
Description copied from interface: IJoin
Bind inbound {parameter} values to the ServletRequest.getParameterMap(), by name.

Specified by:
withRequestBinding in interface IJoin

where

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

where

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

evaluate

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

getPathExpression

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

getResourcexpression

public ParameterizedPattern getResourcexpression()
Specified by:
getResourcexpression in interface IJoin

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 Rule

withInboundCorrection

public IJoin withInboundCorrection()
Description copied from interface: IJoin
Redirect inbound requests for the internal resource to the outward facing URL instead.

Specified by:
withInboundCorrection in interface IJoin

to

public IJoin to(String resource)
Description copied from interface: IJoin
The internal server resource (real or virtual) to be served.

Specified by:
to in interface IJoin

perform

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

Specified by:
perform in interface IJoin

when

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

Specified by:
when in interface IJoin

withId

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

Specified by:
withId in interface IJoin

rewrite-impl-servlet 1.0.5.Final

Copyright © 2012 OCPsoft. All Rights Reserved.