org.ocpsoft.rewrite.servlet.config.rule
Class IJoin.JoinParameter
java.lang.Object
org.ocpsoft.rewrite.bind.DefaultBindable<PARAMTYPE>
org.ocpsoft.rewrite.param.ParameterBuilder<IJoin.JoinParameter,String>
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, ConfigurationElement, Operation, 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
| Methods inherited from class org.ocpsoft.rewrite.param.ParameterBuilder |
bindsTo, constrainedBy, convert, convertedBy, convertedBy, getConstraints, getConverter, getTransforms, getValidator, toString, transformedBy, validate, validatedBy, validatedBy |
IJoin.JoinParameter
public IJoin.JoinParameter(IJoin join,
IPath.PathParameter... captures)
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>
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 ParameterizedPatternParser getPathExpression()
- Specified by:
getPathExpression in interface IJoin
getResourcexpression
public ParameterizedPatternParser getResourcexpression()
- Specified by:
getResourcexpression in interface IJoin
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
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 match 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
withChaining
public IJoin withChaining()
- Description copied from interface:
IJoin
- Allow the target of this
Join to invoke another Join rule. By default, once a Join has
been invoked, no more Join rules will be processed.
- Specified by:
withChaining in interface IJoin
Copyright © 2012 OCPsoft. All Rights Reserved.