All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.apache.tomcat.core.ServletContextFacade

java.lang.Object
   |
   +----org.apache.tomcat.core.ServletContextFacade

public class ServletContextFacade
extends Object
implements ServletContext
Implementation of the javax.servlet.ServletContext interface that servlets see. Having this as a Facade class to the Context class means that we can split up some of the work.

Author:
James Duncan Davidson [duncan@eng.sun.com], Jason Hunter [jch@eng.sun.com], James Todd [gonzo@eng.sun.com], Harish Prabandham

Method Index

 o getAttribute(String)
 o getAttributeNames()
 o getContext(String)
 o getInitParameter(String)
 o getInitParameterNames()
 o getMajorVersion()
 o getMimeType(String)
 o getMinorVersion()
 o getNamedDispatcher(String)
 o getRealContext()
The one package level hole through the facade for use by the default servlet and invoker servlet
 o getRealPath(String)
 o getRequestDispatcher(String)
 o getResource(String)
 o getResourceAsStream(String)
 o getServerInfo()
 o getServlet(String)
Deprecated.
 o getServletNames()
This method has been deprecated in the public api and always return an empty enumeration. Deprecated.
 o getServlets()
This method has been deprecated in the public api and always return an empty enumeration. Deprecated.
 o log(Exception, String)
Deprecated.
 o log(String)
 o log(String, Throwable)
 o removeAttribute(String)
 o setAttribute(String, Object)

Methods

 o getRealContext
 public Context getRealContext()
The one package level hole through the facade for use by the default servlet and invoker servlet

 o getAttribute
 public Object getAttribute(String name)
 o getAttributeNames
 public Enumeration getAttributeNames()
 o setAttribute
 public void setAttribute(String name,
                          Object object)
 o removeAttribute
 public void removeAttribute(String name)
 o getContext
 public ServletContext getContext(String path)
 o getMajorVersion
 public int getMajorVersion()
 o getMinorVersion
 public int getMinorVersion()
 o getMimeType
 public String getMimeType(String filename)
 o getRealPath
 public String getRealPath(String path)
 o getResourceAsStream
 public InputStream getResourceAsStream(String path)
 o getResource
 public URL getResource(String path) throws MalformedURLException
 o getRequestDispatcher
 public RequestDispatcher getRequestDispatcher(String path)
 o getNamedDispatcher
 public RequestDispatcher getNamedDispatcher(String name)
 o getServerInfo
 public String getServerInfo()
 o log
 public void log(String msg)
 o getInitParameter
 public String getInitParameter(String name)
 o getInitParameterNames
 public Enumeration getInitParameterNames()
 o log
 public void log(String msg,
                 Throwable t)
 o log
 public void log(Exception e,
                 String msg)
Note: log() is deprecated. This method is deprecated in the javax.servlet.ServletContext interface

 o getServlet
 public Servlet getServlet(String name) throws ServletException
Note: getServlet() is deprecated. This method is deprecated in the javax.servlet.ServletContext interface

 o getServlets
 public Enumeration getServlets()
Note: getServlets() is deprecated.

This method has been deprecated in the public api and always return an empty enumeration.

 o getServletNames
 public Enumeration getServletNames()
Note: getServletNames() is deprecated.

This method has been deprecated in the public api and always return an empty enumeration.


All Packages  Class Hierarchy  This Package  Previous  Next  Index