Class Substitute
java.lang.Object
org.ocpsoft.rewrite.config.DefaultOperationBuilder
org.ocpsoft.rewrite.servlet.config.HttpOperation
org.ocpsoft.rewrite.servlet.config.Substitute
- All Implemented Interfaces:
Operation,OperationBuilder,Parameterized
An
Operation responsible for substituting an inbound or outbound Address with a replacement. For
InboundRewrite events, this calls InboundServletRewrite.forward(String), and for
OutboundRewrite events, this calls HttpOutboundServletRewrite#setOutboundAddress(String)- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionGet the underlyingParameterizedPatternParserfor thisSubstitute.voidperformHttp(HttpServletRewrite event, EvaluationContext context) voidsetParameterStore(ParameterStore store) static SubstituteSubstitute the currentAddresswith the given location.Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpOperation
performMethods inherited from class org.ocpsoft.rewrite.config.DefaultOperationBuilder
and
-
Method Details
-
with
Substitute the currentAddresswith the given location.The given location may be parameterized:
INBOUND:
/example/{param}.html
/css/{value}.css
...OUTBOUND:
www.example.com/path/file.html
www.example.com/path/{resource}.html
...- Parameters:
location-ParameterizedPatternspecifying the newAddress.
-
performHttp
- Specified by:
performHttpin classHttpOperation
-
getExpression
Get the underlyingParameterizedPatternParserfor thisSubstitute. -
getRequiredParameterNames
- Specified by:
getRequiredParameterNamesin interfaceParameterized
-
setParameterStore
- Specified by:
setParameterStorein interfaceParameterized
-