org.apache.catalina.core

Class ApplicationContextFacade

Implemented Interfaces:
ServletContext

public final class ApplicationContextFacade
extends java.lang.Object
implements ServletContext

Facade object which masks the internal ApplicationContext object from the web application.

Version:
$Revision: 1.10.2.3 $ $Date: 2004/11/18 22:13:36 $

Authors:
Remy Maucherat
Jean-Francois Arcand

Constructor Summary

ApplicationContextFacade(ApplicationContext context)
Construct a new instance of this class, associated with the specified Context instance.

Method Summary

Object
getAttribute(String name)
Enumeration
getAttributeNames()
ServletContext
getContext(String uripath)
String
getInitParameter(String name)
Enumeration
getInitParameterNames()
int
getMajorVersion()
String
getMimeType(String file)
int
getMinorVersion()
RequestDispatcher
getNamedDispatcher(String name)
String
getRealPath(String path)
RequestDispatcher
getRequestDispatcher(String path)
URL
getResource(String path)
InputStream
getResourceAsStream(String path)
Set
getResourcePaths(String path)
String
getServerInfo()
Servlet
getServlet(String name)
String
getServletContextName()
Enumeration
getServletNames()
Enumeration
getServlets()
void
log(Exception exception, String msg)
void
log(String msg)
void
log(String message, Throwable throwable)
void
removeAttribute(String name)
void
setAttribute(String name, Object object)

Constructor Details

ApplicationContextFacade

public ApplicationContextFacade(ApplicationContext context)
Construct a new instance of this class, associated with the specified Context instance.

Parameters:
context - The associated Context instance

Method Details

getAttribute

public Object getAttribute(String name)


getAttributeNames

public Enumeration getAttributeNames()


getContext

public ServletContext getContext(String uripath)


getInitParameter

public String getInitParameter(String name)


getInitParameterNames

public Enumeration getInitParameterNames()


getMajorVersion

public int getMajorVersion()


getMimeType

public String getMimeType(String file)


getMinorVersion

public int getMinorVersion()


getNamedDispatcher

public RequestDispatcher getNamedDispatcher(String name)


getRealPath

public String getRealPath(String path)


getRequestDispatcher

public RequestDispatcher getRequestDispatcher(String path)


getResource

public URL getResource(String path)
            throws MalformedURLException


getResourceAsStream

public InputStream getResourceAsStream(String path)


getResourcePaths

public Set getResourcePaths(String path)


getServerInfo

public String getServerInfo()


getServlet

public Servlet getServlet(String name)
            throws ServletException


getServletContextName

public String getServletContextName()


getServletNames

public Enumeration getServletNames()


getServlets

public Enumeration getServlets()


log

public void log(Exception exception,
                String msg)


log

public void log(String msg)


log

public void log(String message,
                Throwable throwable)


removeAttribute

public void removeAttribute(String name)


setAttribute

public void setAttribute(String name,
                         Object object)


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.