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