001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package javax.servlet.http;
018:
019: import java.io.IOException;
020: import java.io.PrintWriter;
021: import java.util.Locale;
022:
023: import javax.servlet.ServletOutputStream;
024: import javax.servlet.ServletResponse;
025:
026: /**
027: * Mock class providing the declarations required to compile the Cocoon code when
028: * the actual library is not present.
029: *
030: * @version $Id: HttpServletResponseWrapper.java 433543 2006-08-22 06:22:54Z crossley $
031: */
032: public class HttpServletResponseWrapper implements HttpServletResponse {
033:
034: public HttpServletResponseWrapper(HttpServletResponse response) {
035:
036: }
037:
038: public ServletResponse getResponse() {
039: return null;
040: }
041:
042: public void addCookie(Cookie arg0) {
043: }
044:
045: public void addDateHeader(String arg0, long arg1) {
046: }
047:
048: public void addHeader(String arg0, String arg1) {
049: }
050:
051: public void addIntHeader(String arg0, int arg1) {
052: }
053:
054: public boolean containsHeader(String arg0) {
055: return false;
056: }
057:
058: public String encodeRedirectUrl(String arg0) {
059: return null;
060: }
061:
062: public String encodeRedirectURL(String arg0) {
063: return null;
064: }
065:
066: public String encodeUrl(String arg0) {
067: return null;
068: }
069:
070: public String encodeURL(String arg0) {
071: return null;
072: }
073:
074: public void sendError(int arg0, String arg1) throws IOException {
075: }
076:
077: public void sendError(int arg0) throws IOException {
078: }
079:
080: public void sendRedirect(String arg0) throws IOException {
081: }
082:
083: public void setDateHeader(String arg0, long arg1) {
084: }
085:
086: public void setHeader(String arg0, String arg1) {
087: }
088:
089: public void setIntHeader(String arg0, int arg1) {
090: }
091:
092: public void setStatus(int arg0, String arg1) {
093: }
094:
095: public void setStatus(int arg0) {
096: }
097:
098: public void flushBuffer() throws IOException {
099: }
100:
101: public int getBufferSize() {
102: return 0;
103: }
104:
105: public String getCharacterEncoding() {
106: return null;
107: }
108:
109: public Locale getLocale() {
110: return null;
111: }
112:
113: public ServletOutputStream getOutputStream() throws IOException {
114: return null;
115: }
116:
117: public PrintWriter getWriter() throws IOException {
118: return null;
119: }
120:
121: public boolean isCommitted() {
122: return false;
123: }
124:
125: public void reset() {
126: }
127:
128: public void setBufferSize(int arg0) {
129: }
130:
131: public void setContentLength(int arg0) {
132: }
133:
134: public void setContentType(String arg0) {
135: }
136:
137: public void setLocale(Locale arg0) {
138: }
139: }
|