View Javadoc

1   /*
2    * Copyright 2003,2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  /* 
17  
18   */
19  
20  package org.apache.pluto.portalImpl.servlet;
21  
22  import java.io.IOException;
23  import java.io.PrintWriter;
24  
25  import javax.servlet.http.HttpServletResponse;
26  
27  public class StoredServletResponseImpl extends ServletResponseImpl 
28  {
29      private PrintWriter writer;
30  
31      public StoredServletResponseImpl(HttpServletResponse response, PrintWriter _writer)
32      {
33          super(response);
34          writer = _writer;
35      }
36  
37      public void setResponse(HttpServletResponse response) 
38      {
39          super.setResponse(response);
40      }
41  /*    
42      public ServletOutputStream getOutputStream()
43          throws IOException
44      {
45          return response.getOutputStream();
46      }
47  */
48      public PrintWriter getWriter()
49          throws IOException
50      {
51          return writer;
52      }
53  /*
54      public void setBufferSize(int size)
55      {
56          response.setBufferSize(size);
57      }
58  
59      public int getBufferSize()
60      {
61          return response.getBufferSize();
62      }
63  */
64      public void flushBuffer()
65          throws IOException
66      {
67          writer.flush();
68      }
69  /*
70      public boolean isCommitted()
71      {
72          return response.isCommitted();
73      }
74  
75      public void reset()
76      {
77          response.reset();
78      }
79  
80      public void resetBuffer()
81      {
82          response.resetBuffer();
83      }
84  */
85  }