org.apache.catalina.core

Class ApplicationContextFacade

public final class ApplicationContextFacade extends Object implements ServletContext

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

Version: $Revision: 832238 $ $Date: 2009-11-03 02:05:22 +0100 (Tue, 03 Nov 2009) $

Author: 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
ObjectgetAttribute(String name)
EnumerationgetAttributeNames()
ServletContextgetContext(String uripath)
StringgetContextPath()
StringgetInitParameter(String name)
EnumerationgetInitParameterNames()
intgetMajorVersion()
StringgetMimeType(String file)
intgetMinorVersion()
RequestDispatchergetNamedDispatcher(String name)
StringgetRealPath(String path)
RequestDispatchergetRequestDispatcher(String path)
URLgetResource(String path)
InputStreamgetResourceAsStream(String path)
SetgetResourcePaths(String path)
StringgetServerInfo()
ServletgetServlet(String name)
StringgetServletContextName()
EnumerationgetServletNames()
EnumerationgetServlets()
voidlog(String msg)
voidlog(Exception exception, String msg)
voidlog(String message, Throwable throwable)
voidremoveAttribute(String name)
voidsetAttribute(String name, Object object)

Constructor Detail

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 Detail

getAttribute

public Object getAttribute(String name)

getAttributeNames

public Enumeration getAttributeNames()

getContext

public ServletContext getContext(String uripath)

getContextPath

public String getContextPath()

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)

getResourceAsStream

public InputStream getResourceAsStream(String path)

getResourcePaths

public Set getResourcePaths(String path)

getServerInfo

public String getServerInfo()

getServlet

public Servlet getServlet(String name)

getServletContextName

public String getServletContextName()

getServletNames

public Enumeration getServletNames()

getServlets

public Enumeration getServlets()

log

public void log(String msg)

log

public void log(Exception exception, 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 © 2000-2011 Apache Software Foundation. All Rights Reserved.