1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| package foundation.route;
|
| import javax.servlet.http.HttpServletRequest;
| import javax.servlet.http.HttpServletResponse;
|
| public class VirtualPathNavigator extends RouteNavigator {
|
| private String path;
|
|
| public VirtualPathNavigator(HttpServletRequest request, String uri, String path, Route route, boolean authorizeSensitive) {
| super(request, uri, path, route, authorizeSensitive);
| this.path = path;
| }
|
| @Override
| public void sendTo(HttpServletResponse response, Object... args) {
| try {
| response.sendRedirect(path);
| }
| catch(Exception e) {
| }
| }
|
| }
|
|