public class Forward extends HttpOperation implements Parameterized
Operation that forwards an inbound request to a configured internal resource Address via
InboundServletRewrite.forward(String)| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getRequiredParameterNames() |
ParameterizedPatternBuilder |
getTargetExpression() |
void |
performHttp(HttpServletRewrite event,
EvaluationContext context) |
void |
setParameterStore(ParameterStore store) |
static Forward |
to(String location)
Create a new
Operation that forwards the current request to the given location within the servlet
container. |
String |
toString() |
performandpublic static Forward to(String location)
Operation that forwards the current request to the given location within the servlet
container. This does not change the browser Address, all processing is handled within the current
HttpServletRequest.
The given location may be parameterized:
/example/{param}.html
/example/{value}/sub/{value2}
...
location - ParameterizedPattern specifying the Address of the internal resource.ConfigurationRuleParameterBuilder#where(String)}
{@link HttpServletRequest#getRequestDispatcher(String)}
{@link RequestDispatcher#forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)}public void performHttp(HttpServletRewrite event, EvaluationContext context)
performHttp in class HttpOperationpublic ParameterizedPatternBuilder getTargetExpression()
public Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface ParameterizedCopyright © 2016 OCPsoft. All rights reserved.