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