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 weblogic.servlet.internal;
018:
019: import java.io.IOException;
020:
021: import javax.servlet.ServletOutputStream;
022: import javax.servlet.http.HttpServletResponse;
023:
024: /**
025: * **********************************************************************
026: * * W A R N I N G *
027: * **********************************************************************
028: *
029: * This is a mock object of the class, not the actual class.
030: * It's used to compile the code in absence of the actual class.
031: *
032: * This class is created by hand, not automatically.
033: *
034: * **********************************************************************
035: *
036: * @version CVS $Id: ServletResponseImpl.java 433543 2006-08-22 06:22:54Z crossley $
037: */
038:
039: public class ServletResponseImpl implements HttpServletResponse {
040:
041: public ServletResponseImpl() {
042: super ();
043: }
044:
045: public ServletResponseImpl(ServletContextImpl sci) {
046: super ();
047: }
048:
049: public void setOutputStream(ServletOutputStreamImpl sosi) {
050: }
051:
052: public void addCookie(javax.servlet.http.Cookie arg1) {
053: }
054:
055: public void addDateHeader(java.lang.String arg1, long arg2) {
056: }
057:
058: public void addHeader(java.lang.String arg1, java.lang.String arg2) {
059: }
060:
061: public void addIntHeader(java.lang.String arg1, int arg2) {
062: }
063:
064: public boolean containsHeader(String arg1) {
065: return false;
066: }
067:
068: /** @deprecated The method ServletResponseImpl.encodeRedirectUrl(String)
069: * overrides a deprecated method from HttpServletResponse */
070: public String encodeRedirectUrl(String arg1) {
071: return null;
072: }
073:
074: public String encodeRedirectURL(String arg1) {
075: return null;
076: }
077:
078: /** @deprecated The method ServletResponseImpl.encodeUrl(String) overrides
079: * a deprecated method from HttpServletResponse */
080: public String encodeUrl(String arg1) {
081: return null;
082: }
083:
084: public String encodeURL(String arg1) {
085: return null;
086: }
087:
088: public void flushBuffer() throws java.io.IOException {
089: }
090:
091: public int getBufferSize() {
092: return 0;
093: }
094:
095: public String getCharacterEncoding() {
096: return null;
097: }
098:
099: public java.util.Locale getLocale() {
100: return null;
101: }
102:
103: public javax.servlet.ServletOutputStream getOutputStream()
104: throws java.io.IOException {
105: return null;
106: }
107:
108: public String getOutputStreamContents() {
109: return "";
110: }
111:
112: public java.io.PrintWriter getWriter() throws java.io.IOException {
113: return null;
114: }
115:
116: public boolean isCommitted() {
117: return false;
118: }
119:
120: public void reset() {
121: }
122:
123: public void resetBuffer() {
124: }
125:
126: public void setExpectedError(int anErrorCode) {
127: }
128:
129: public void setExpectedError(int anErrorCode, String anErrorMessage) {
130: }
131:
132: public void setExpectedErrorNothing() {
133: }
134:
135: public void sendError(int anErrorCode) throws java.io.IOException {
136: }
137:
138: public void sendError(int anErrorCode, String anErrorMessage)
139: throws IOException {
140: }
141:
142: public void sendRedirect(String aURL) throws java.io.IOException {
143: }
144:
145: public void setBufferSize(int arg1) {
146: }
147:
148: public void setContentLength(int arg1) {
149: }
150:
151: public void setContentType(String contentType) {
152: }
153:
154: public void setDateHeader(String arg1, long arg2) {
155: }
156:
157: public void setExpectedContentType(String contentType) {
158: }
159:
160: public void setExpectedHeader(String key, String value) {
161: }
162:
163: public void setExpectedRedirect(String aURL) throws IOException {
164: }
165:
166: public void setExpectedSetStatusCalls(int callCount) {
167: }
168:
169: public void setHeader(String key, String value) {
170: }
171:
172: public void setIntHeader(String arg1, int arg2) {
173: }
174:
175: public void setLocale(java.util.Locale arg1) {
176: }
177:
178: public void setStatus(int status) {
179: }
180:
181: /** @deprecated The method ServletResponseImpl.setStatus(int, String)
182: * overrides a deprecated method from HttpServletResponse */
183: public void setStatus(int arg1, String arg2) {
184: }
185:
186: public void setupOutputStream(ServletOutputStream anOutputStream) {
187: }
188: }
|