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