View Javadoc

1   package com.philemonworks.selfdiagnose.test.xtra;
2   
3   import java.io.IOException;
4   import java.io.PrintWriter;
5   import java.io.StringWriter;
6   import java.util.Locale;
7   
8   import javax.servlet.ServletOutputStream;
9   import javax.servlet.http.Cookie;
10  import javax.servlet.http.HttpServletResponse;
11  
12  public class MockHttpResponse implements HttpServletResponse {
13      public void addCookie(Cookie arg0) {
14          // TODO Auto-generated method stub
15      }
16  
17      public void addDateHeader(String arg0, long arg1) {
18          // TODO Auto-generated method stub
19      }
20  
21      public void addHeader(String arg0, String arg1) {
22          // TODO Auto-generated method stub
23      }
24  
25      public void addIntHeader(String arg0, int arg1) {
26          // TODO Auto-generated method stub
27      }
28  
29      public boolean containsHeader(String arg0) {
30          // TODO Auto-generated method stub
31          return false;
32      }
33  
34      public String encodeRedirectURL(String arg0) {
35          // TODO Auto-generated method stub
36          return null;
37      }
38  
39      public String encodeRedirectUrl(String arg0) {
40          // TODO Auto-generated method stub
41          return null;
42      }
43  
44      public String encodeURL(String arg0) {
45          // TODO Auto-generated method stub
46          return null;
47      }
48  
49      public String encodeUrl(String arg0) {
50          // TODO Auto-generated method stub
51          return null;
52      }
53  
54      public void sendError(int arg0) throws IOException {
55          // TODO Auto-generated method stub
56      }
57  
58      public void sendError(int arg0, String arg1) throws IOException {
59          // TODO Auto-generated method stub
60      }
61  
62      public void sendRedirect(String arg0) throws IOException {
63          // TODO Auto-generated method stub
64      }
65  
66      public void setDateHeader(String arg0, long arg1) {
67          // TODO Auto-generated method stub
68      }
69  
70      public void setHeader(String arg0, String arg1) {
71          // TODO Auto-generated method stub
72      }
73  
74      public void setIntHeader(String arg0, int arg1) {
75          // TODO Auto-generated method stub
76      }
77  
78      public void setStatus(int arg0) {
79          // TODO Auto-generated method stub
80      }
81  
82      public void setStatus(int arg0, String arg1) {
83          // TODO Auto-generated method stub
84      }
85  
86      public void flushBuffer() throws IOException {
87          // TODO Auto-generated method stub
88      }
89  
90      public int getBufferSize() {
91          // TODO Auto-generated method stub
92          return 0;
93      }
94  
95      public String getCharacterEncoding() {
96          // TODO Auto-generated method stub
97          return null;
98      }
99  
100     public String getContentType() {
101         // TODO Auto-generated method stub
102         return null;
103     }
104 
105     public Locale getLocale() {
106         // TODO Auto-generated method stub
107         return null;
108     }
109 
110     public ServletOutputStream getOutputStream() throws IOException {
111         // TODO Auto-generated method stub
112         return null;
113     }
114 
115     public PrintWriter getWriter() throws IOException {
116         // TODO Auto-generated method stub
117         return new PrintWriter(new StringWriter());
118     }
119 
120     public boolean isCommitted() {
121         // TODO Auto-generated method stub
122         return false;
123     }
124 
125     public void reset() {
126         // TODO Auto-generated method stub
127     }
128 
129     public void resetBuffer() {
130         // TODO Auto-generated method stub
131     }
132 
133     public void setBufferSize(int arg0) {
134         // TODO Auto-generated method stub
135     }
136 
137     public void setCharacterEncoding(String arg0) {
138         // TODO Auto-generated method stub
139     }
140 
141     public void setContentLength(int arg0) {
142         // TODO Auto-generated method stub
143     }
144 
145     public void setContentType(String arg0) {
146         // TODO Auto-generated method stub
147     }
148 
149     public void setLocale(Locale arg0) {
150         // TODO Auto-generated method stub
151     }
152 }