01: /* Copyright 2004 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.container.servlet;
07:
08: import java.io.PrintWriter;
09:
10: import javax.servlet.http.HttpServletResponse;
11:
12: import org.apache.pluto.services.factory.FactoryManager;
13:
14: public class ServletObjectAccess {
15:
16: // public static HttpServletRequest getServletRequest(HttpServletRequest request, PortletWindow portletWindow) {
17: // return getRequestFactory().getServletRequest(request, portletWindow);
18: // }
19:
20: public static HttpServletResponse getServletResponse(
21: HttpServletResponse response) {
22: return getResponseFactory().getServletResponse(response);
23: }
24:
25: public static HttpServletResponse getStoredServletResponse(
26: HttpServletResponse response, PrintWriter writer) {
27: return getResponseFactory().getStoredServletResponse(response,
28: writer);
29: }
30:
31: // private static ServletRequestFactory getRequestFactory() {
32: // return (ServletRequestFactory)FactoryManager.getFactory(javax.servlet.http.HttpServletRequest.class);
33: // }
34:
35: private static ServletResponseFactory getResponseFactory() {
36: return (ServletResponseFactory) FactoryManager
37: .getFactory(javax.servlet.http.HttpServletResponse.class);
38: }
39: }
|