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