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
-
getAttribute(String)
-
-
getAttributeNames()
-
-
getContext(String)
-
-
getInitParameter(String)
-
-
getInitParameterNames()
-
-
getMajorVersion()
-
-
getMimeType(String)
-
-
getMinorVersion()
-
-
getNamedDispatcher(String)
-
-
getRealContext()
- The one package level hole through the facade for use by
the default servlet and invoker servlet
-
getRealPath(String)
-
-
getRequestDispatcher(String)
-
-
getResource(String)
-
-
getResourceAsStream(String)
-
-
getServerInfo()
-
-
getServlet(String)
-
Deprecated.
-
getServletNames()
- This method has been deprecated in the public api and always
return an empty enumeration.
Deprecated.
-
getServlets()
- This method has been deprecated in the public api and always
return an empty enumeration.
Deprecated.
-
log(Exception, String)
-
Deprecated.
-
log(String)
-
-
log(String, Throwable)
-
-
removeAttribute(String)
-
-
setAttribute(String, Object)
-
getRealContext
public Context getRealContext()
- The one package level hole through the facade for use by
the default servlet and invoker servlet
getAttribute
public Object getAttribute(String name)
getAttributeNames
public Enumeration getAttributeNames()
setAttribute
public void setAttribute(String name,
Object object)
removeAttribute
public void removeAttribute(String name)
getContext
public ServletContext getContext(String path)
getMajorVersion
public int getMajorVersion()
getMinorVersion
public int getMinorVersion()
getMimeType
public String getMimeType(String filename)
getRealPath
public String getRealPath(String path)
getResourceAsStream
public InputStream getResourceAsStream(String path)
getResource
public URL getResource(String path) throws MalformedURLException
getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String path)
getNamedDispatcher
public RequestDispatcher getNamedDispatcher(String name)
getServerInfo
public String getServerInfo()
log
public void log(String msg)
getInitParameter
public String getInitParameter(String name)
getInitParameterNames
public Enumeration getInitParameterNames()
log
public void log(String msg,
Throwable t)
log
public void log(Exception e,
String msg)
- Note: log() is deprecated.
This method is deprecated in the
javax.servlet.ServletContext interface
getServlet
public Servlet getServlet(String name) throws ServletException
- Note: getServlet() is deprecated.
This method is deprecated in the
javax.servlet.ServletContext interface
getServlets
public Enumeration getServlets()
- Note: getServlets() is deprecated.
- This method has been deprecated in the public api and always
return an empty enumeration.
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