org.ocpsoft.rewrite.servlet.config
Class Forward
java.lang.Object
org.ocpsoft.rewrite.config.DefaultOperationBuilder
org.ocpsoft.rewrite.servlet.config.HttpOperation
org.ocpsoft.rewrite.servlet.config.Forward
- All Implemented Interfaces:
- ConfigurationElement, Operation, OperationBuilder, Parameterized<IForward,IForward.ForwardParameter,String>, IForward
public class Forward
- extends HttpOperation
- implements IForward
An Operation that performs forwards via
InboundServletRewrite.forward(String)
- Author:
- Lincoln Baxter, III
to
public static Forward to(String location)
- Forward the current request to the given location within the servlet container. This does not change the browser
URL, all processing is handled within the current HttpServletRequest.
The given location may be parameterized using the following format:
/example/{param}
/example/{value}/sub/{value2}
... and so on
Parameters may be bound. By default, matching parameter values are extracted from bindings in the
EvaluationContext.
See also where(String)
performHttp
public void performHttp(HttpServletRewrite event,
EvaluationContext context)
- Specified by:
performHttp in class HttpOperation
where
public IForward.ForwardParameter where(String param)
- Specified by:
where in interface Parameterized<IForward,IForward.ForwardParameter,String>
where
public IForward.ForwardParameter where(String param,
Binding binding)
- Specified by:
where in interface Parameterized<IForward,IForward.ForwardParameter,String>
toString
public String toString()
- Overrides:
toString in class Object
getTargetExpression
public ParameterizedPatternBuilder getTargetExpression()
- Specified by:
getTargetExpression in interface IForward
Copyright © 2012 OCPsoft. All Rights Reserved.