View Javadoc

1   /*
2    * $Id: FakeServletResponse.java,v 1.1 2008/10/07 13:09:20 oeuillot Exp $
3    */
4   package org.rcfaces.core.internal.util;
5   
6   import java.io.IOException;
7   import java.io.PrintWriter;
8   import java.util.Locale;
9   
10  import javax.servlet.ServletOutputStream;
11  import javax.servlet.ServletResponse;
12  
13  /**
14   * 
15   * @author Olivier Oeuillot (latest modification by $Author: oeuillot $)
16   * @version $Revision: 1.1 $ $Date: 2008/10/07 13:09:20 $
17   */
18  public class FakeServletResponse implements ServletResponse {
19  
20      public static final ServletResponse SINGLETON = new FakeServletResponse();
21  
22      public void flushBuffer() throws IOException {
23  
24      }
25  
26      public int getBufferSize() {
27  
28          return 0;
29      }
30  
31      public String getCharacterEncoding() {
32  
33          return null;
34      }
35  
36      public String getContentType() {
37  
38          return null;
39      }
40  
41      public Locale getLocale() {
42  
43          return null;
44      }
45  
46      public ServletOutputStream getOutputStream() throws IOException {
47  
48          return null;
49      }
50  
51      public PrintWriter getWriter() throws IOException {
52  
53          return null;
54      }
55  
56      public boolean isCommitted() {
57  
58          return false;
59      }
60  
61      public void reset() {
62  
63      }
64  
65      public void resetBuffer() {
66  
67      }
68  
69      public void setBufferSize(int arg0) {
70  
71      }
72  
73      public void setCharacterEncoding(String arg0) {
74  
75      }
76  
77      public void setContentLength(int arg0) {
78  
79      }
80  
81      public void setContentType(String arg0) {
82  
83      }
84  
85      public void setLocale(Locale arg0) {
86  
87      }
88  
89  }