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.InputStream;
020: import java.net.URL;
021: import java.util.Enumeration;
022: import java.util.Set;
023:
024: import javax.servlet.RequestDispatcher;
025: import javax.servlet.Servlet;
026: import javax.servlet.ServletContext;
027:
028: /**
029: * **********************************************************************
030: * * W A R N I N G *
031: * **********************************************************************
032: *
033: * This is a mock object of the class, not the actual class.
034: * It's used to compile the code in absence of the actual class.
035: *
036: * This class is created by hand, not automatically.
037: *
038: * **********************************************************************
039: *
040: * @version CVS $Id: ServletContextImpl.java 433543 2006-08-22 06:22:54Z crossley $
041: */
042:
043: public class ServletContextImpl implements ServletContext {
044:
045: /** @deprecated The method ServletContextImpl.getServlets() overrides a
046: * deprecated method from ServletContext */
047: public Enumeration getServlets() {
048: return null;
049: }
050:
051: public void log(String string) {
052: }
053:
054: public void setExpectedLog(String string) {
055: }
056:
057: public void setupGetResource(URL resource) {
058: }
059:
060: public URL getResource(String string) {
061: return null;
062: }
063:
064: public void setupGetResourcePaths(Set resourcePaths) {
065: }
066:
067: public Set getResourcePaths(String string) {
068: return null;
069: }
070:
071: public ServletContext getContext(String string) {
072: return null;
073: }
074:
075: public int getMinorVersion() {
076: return -1;
077: }
078:
079: public void removeAttribute(String string) {
080: }
081:
082: public void log(String string, Throwable t) {
083: }
084:
085: public void setExpectedLogThrowable(Throwable throwable) {
086: }
087:
088: public void addRealPath(String realPath) {
089: }
090:
091: public String getRealPath(String string) {
092: return "";
093: }
094:
095: /** @deprecated The method ServletContextImpl.getServletNames() overrides
096: * a deprecated method from ServletContext */
097: public Enumeration getServletNames() {
098: return null;
099: }
100:
101: /** @deprecated The method ServletContextImpl.getServlet(String) overrides
102: * a deprecated method from ServletContext */
103: public Servlet getServlet(String string) {
104: return null;
105: }
106:
107: /** @deprecated The method ServletContextImpl.log(Exception, String)
108: * overrides a deprecated method from ServletContext */
109: public void log(Exception exception, String string) {
110: }
111:
112: public String getServerInfo() {
113: return null;
114: }
115:
116: public void setExpectedRequestDispatcherURI(String uri) {
117: }
118:
119: public void setupGetRequestDispatcher(
120: RequestDispatcher requestDispatcher) {
121: }
122:
123: public RequestDispatcher getRequestDispatcher(String uri) {
124: return null;
125: }
126:
127: public int getMajorVersion() {
128: return -1;
129: }
130:
131: public Set getResourcePaths() {
132: return null;
133: }
134:
135: public void setAttribute(String string, Object object) {
136: }
137:
138: public String getMimeType(String string) {
139: return null;
140: }
141:
142: public RequestDispatcher getNamedDispatcher(String string) {
143: return null;
144: }
145:
146: public String getInitParameter(String paramName) {
147: return null;
148: }
149:
150: public void setInitParameter(String paramName, String paramValue) {
151: }
152:
153: public Object getAttribute(String string) {
154: return null;
155: }
156:
157: public Enumeration getAttributeNames() {
158: return null;
159: }
160:
161: public String getServletContextName() {
162: return null;
163: }
164:
165: public InputStream getResourceAsStream(String string) {
166: return null;
167: }
168:
169: public Enumeration getInitParameterNames() {
170: return null;
171: }
172: }
|