public Request process(Request request)
{
final String path = request.getPath();
if (path.equals("/struts"))
{
request = new SimpleRequestWrapper(request, "/jsf");
}
return request;
}
};
URLRewriterRule rule2 = new URLRewriterRule() {
public Request process(Request request)
{
final String path = request.getPath();
if (path.equals("/jsf"))
{
request = new SimpleRequestWrapper(request, "/tapestry");
}
return request;
}
};
URLRewriterRule rule3 = new URLRewriterRule() {
public Request process(Request request)
{
String path = request.getPath();
if (path.equals("/tapestry"))
{
path = "/" + URLRewriteSuccess.class.getSimpleName();
request = new SimpleRequestWrapper(request, path);
}
return request;
}