public class Substitute extends HttpOperation implements Parameterized
InboundRewrite events, this Operation calls
InboundServletRewrite.forward(String), and for OutboundRewrite events,
this method calls HttpOutboundServletRewrite#setOutboundAddress(String)DefaultOperationBuilder.NoOp| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getRequiredParameterNames() |
ParameterizedPatternParser |
getTargetExpression() |
void |
performHttp(HttpServletRewrite event,
EvaluationContext context) |
void |
setParameterStore(ParameterStore store) |
String |
toString() |
static Substitute |
with(String location)
Substitute the current URL with the given location.
|
performand, create, wrappublic static Substitute with(String location)
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)
public void performHttp(HttpServletRewrite event, EvaluationContext context)
performHttp in class HttpOperationpublic ParameterizedPatternParser getTargetExpression()
public Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface ParameterizedCopyright © 2013 OCPsoft. All Rights Reserved.