1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.engine.servlet;
18
19 import java.util.Map;
20
21 import javax.servlet.ServletConfig;
22 import javax.servlet.http.HttpServletResponse;
23
24 /***
25 * Factory implementation for creating HTTP Response Wrappers
26 *
27 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
28 * @version $Id: ServletResponseFactoryImpl.java 185962 2004-03-08 01:03:33Z
29 * jford $
30 */
31 public class ServletResponseFactoryImpl implements ServletResponseFactory
32 {
33
34 public void init(ServletConfig config, Map properties) throws Exception
35 {
36 }
37
38 public void destroy() throws Exception
39 {
40 }
41
42 public HttpServletResponse getServletResponse(HttpServletResponse response)
43 {
44 if (!(response instanceof ServletResponseImpl))
45 {
46 return new ServletResponseImpl(response);
47
48 }
49 else
50 {
51 return response;
52 }
53 }
54
55 }