|
rewrite-config-servlet 2.0.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ocpsoft.rewrite.config.DefaultOperationBuilder
org.ocpsoft.rewrite.servlet.config.HttpOperation
org.ocpsoft.rewrite.servlet.config.Substitute
public class Substitute
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)
| Method Summary | |
|---|---|
ParameterizedPatternParser |
getExpression()
Get the underlying ParameterizedPatternParser for this Substitute. |
Set<String> |
getRequiredParameterNames()
|
void |
performHttp(HttpServletRewrite event,
EvaluationContext context)
|
void |
setParameterStore(ParameterStore store)
|
String |
toString()
|
static Substitute |
with(String location)
Substitute the current Address with the given location. |
| Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpOperation |
|---|
perform |
| Methods inherited from class org.ocpsoft.rewrite.config.DefaultOperationBuilder |
|---|
and |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Substitute with(String location)
Address with 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
...
location - ParameterizedPattern specifying the new Address.ConfigurationRuleParameterBuilder#where(String)}
public void performHttp(HttpServletRewrite event,
EvaluationContext context)
performHttp in class HttpOperationpublic ParameterizedPatternParser getExpression()
ParameterizedPatternParser for this Substitute.
public Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface Parameterizedpublic String toString()
toString in class Object
|
rewrite-config-servlet 2.0.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||