|
1 | | -/** |
2 | | - * OWASP Enterprise Security API (ESAPI) |
3 | | - * |
4 | | - * This file is part of the Open Web Application Security Project (OWASP) |
5 | | - * Enterprise Security API (ESAPI) project. For details, please see |
6 | | - * <a href="http://www.owasp.org/index.php/ESAPI">http://www.owasp.org/index.php/ESAPI</a>. |
7 | | - * |
8 | | - * Copyright (c) 2007 - The OWASP Foundation |
9 | | - * |
10 | | - * The ESAPI is published by OWASP under the BSD license. You should read and accept the |
11 | | - * LICENSE before you use, modify, and/or redistribute this software. |
12 | | - * |
13 | | - * @author Jeff Williams <a href="http://www.aspectsecurity.com">Aspect Security</a> |
14 | | - * @created 2007 |
15 | | - */ |
16 | | -package org.owasp.esapi.http; |
17 | | - |
18 | | -import java.io.IOException; |
19 | | - |
20 | | -import javax.servlet.RequestDispatcher; |
21 | | -import javax.servlet.ServletException; |
22 | | -import javax.servlet.ServletRequest; |
23 | | -import javax.servlet.ServletResponse; |
24 | | - |
25 | | -/** |
26 | | - * |
27 | | - * @author jwilliams |
28 | | - */ |
29 | | -public class MockRequestDispatcher implements RequestDispatcher { |
30 | | - |
31 | | - /** |
32 | | - * |
33 | | - * @param request |
34 | | - * @param response |
35 | | - * @throws javax.servlet.ServletException |
36 | | - * @throws java.io.IOException |
37 | | - */ |
38 | | - public void forward(ServletRequest request, ServletResponse response) throws ServletException, IOException { |
39 | | - System.out.println( "Forwarding" ); |
40 | | - } |
41 | | - |
42 | | - /** |
43 | | - * |
44 | | - * @param request |
45 | | - * @param response |
46 | | - * @throws javax.servlet.ServletException |
47 | | - * @throws java.io.IOException |
48 | | - */ |
49 | | - public void include(ServletRequest request, ServletResponse response) throws ServletException, IOException { |
50 | | - System.out.println( "Including" ); |
51 | | - } |
52 | | -} |
53 | | - |
54 | | -
|
| 1 | +/** |
| 2 | + * OWASP Enterprise Security API (ESAPI) |
| 3 | + * |
| 4 | + * This file is part of the Open Web Application Security Project (OWASP) |
| 5 | + * Enterprise Security API (ESAPI) project. For details, please see |
| 6 | + * <a href="http://www.owasp.org/index.php/ESAPI">http://www.owasp.org/index.php/ESAPI</a>. |
| 7 | + * |
| 8 | + * Copyright (c) 2007 - The OWASP Foundation |
| 9 | + * |
| 10 | + * The ESAPI is published by OWASP under the BSD license. You should read and accept the |
| 11 | + * LICENSE before you use, modify, and/or redistribute this software. |
| 12 | + * |
| 13 | + * @author Jeff Williams <a href="http://www.aspectsecurity.com">Aspect Security</a> |
| 14 | + * @created 2007 |
| 15 | + */ |
| 16 | +package org.owasp.esapi.http; |
| 17 | + |
| 18 | +import java.io.IOException; |
| 19 | + |
| 20 | +import javax.servlet.RequestDispatcher; |
| 21 | +import javax.servlet.ServletException; |
| 22 | +import javax.servlet.ServletRequest; |
| 23 | +import javax.servlet.ServletResponse; |
| 24 | + |
| 25 | +/** |
| 26 | + * |
| 27 | + * @author jwilliams |
| 28 | + */ |
| 29 | +public class MockRequestDispatcher implements RequestDispatcher { |
| 30 | + |
| 31 | + /** |
| 32 | + * |
| 33 | + * @param request |
| 34 | + * @param response |
| 35 | + * @throws javax.servlet.ServletException |
| 36 | + * @throws java.io.IOException |
| 37 | + */ |
| 38 | + public void forward(ServletRequest request, ServletResponse response) throws ServletException, IOException { |
| 39 | + System.out.println( "Forwarding" ); |
| 40 | + } |
| 41 | + |
| 42 | + /** |
| 43 | + * |
| 44 | + * @param request |
| 45 | + * @param response |
| 46 | + * @throws javax.servlet.ServletException |
| 47 | + * @throws java.io.IOException |
| 48 | + */ |
| 49 | + public void include(ServletRequest request, ServletResponse response) throws ServletException, IOException { |
| 50 | + System.out.println( "Including" ); |
| 51 | + } |
| 52 | +} |
| 53 | + |
| 54 | + |
0 commit comments