This project has retired. For details please refer to its Attic page.
ServletContextAdapter (Tiles 2 2.0.7 API)

org.apache.tiles.web.util
Class ServletContextAdapter

Package class diagram package ServletContextAdapter
java.lang.Object
  extended by org.apache.tiles.web.util.ServletContextAdapter
All Implemented Interfaces:
ServletContext

public class ServletContextAdapter
extends Object
implements ServletContext

Adapts a servlet config and a servlet context to become a unique servlet context.

Version:
$Rev: 531864 $ $Date: 2007-04-24 12:24:30 +0200 (Tue, 24 Apr 2007) $

Constructor Summary
ServletContextAdapter(ServletConfig config)
          Constructor.
 
Method Summary
 Object getAttribute(String string)
          
 Enumeration getAttributeNames()
          
 ServletContext getContext(String string)
          
 String getInitParameter(String string)
          
 Enumeration getInitParameterNames()
          
 int getMajorVersion()
          
 String getMimeType(String string)
          
 int getMinorVersion()
          
 RequestDispatcher getNamedDispatcher(String string)
          
 String getRealPath(String string)
          
 RequestDispatcher getRequestDispatcher(String string)
          
 URL getResource(String string)
          
 InputStream getResourceAsStream(String string)
          
 Set getResourcePaths(String string)
          
 String getServerInfo()
          
 Servlet getServlet(String string)
          
 String getServletContextName()
          
 Enumeration getServletNames()
          
 Enumeration getServlets()
          
 void log(Exception exception, String string)
          
 void log(String string)
          
 void log(String string, Throwable throwable)
          
 void removeAttribute(String string)
          
 void setAttribute(String string, Object object)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletContextAdapter

public ServletContextAdapter(ServletConfig config)
Constructor.

Parameters:
config - The servlet configuration object.
Method Detail

getContext

public ServletContext getContext(String string)

Specified by:
getContext in interface ServletContext

getMajorVersion

public int getMajorVersion()

Specified by:
getMajorVersion in interface ServletContext

getMinorVersion

public int getMinorVersion()

Specified by:
getMinorVersion in interface ServletContext

getMimeType

public String getMimeType(String string)

Specified by:
getMimeType in interface ServletContext

getResourcePaths

public Set getResourcePaths(String string)

Specified by:
getResourcePaths in interface ServletContext

getResource

public URL getResource(String string)
                throws MalformedURLException

Specified by:
getResource in interface ServletContext
Throws:
MalformedURLException

getResourceAsStream

public InputStream getResourceAsStream(String string)

Specified by:
getResourceAsStream in interface ServletContext

getRequestDispatcher

public RequestDispatcher getRequestDispatcher(String string)

Specified by:
getRequestDispatcher in interface ServletContext

getNamedDispatcher

public RequestDispatcher getNamedDispatcher(String string)

Specified by:
getNamedDispatcher in interface ServletContext

getServlet

public Servlet getServlet(String string)
                   throws ServletException

Specified by:
getServlet in interface ServletContext
Throws:
ServletException

getServlets

public Enumeration getServlets()

Specified by:
getServlets in interface ServletContext

getServletNames

public Enumeration getServletNames()

Specified by:
getServletNames in interface ServletContext

log

public void log(String string)

Specified by:
log in interface ServletContext

log

public void log(Exception exception,
                String string)

Specified by:
log in interface ServletContext

log

public void log(String string,
                Throwable throwable)

Specified by:
log in interface ServletContext

getRealPath

public String getRealPath(String string)

Specified by:
getRealPath in interface ServletContext

getServerInfo

public String getServerInfo()

Specified by:
getServerInfo in interface ServletContext

getInitParameter

public String getInitParameter(String string)

Specified by:
getInitParameter in interface ServletContext

getInitParameterNames

public Enumeration getInitParameterNames()

Specified by:
getInitParameterNames in interface ServletContext

getAttribute

public Object getAttribute(String string)

Specified by:
getAttribute in interface ServletContext

getAttributeNames

public Enumeration getAttributeNames()

Specified by:
getAttributeNames in interface ServletContext

setAttribute

public void setAttribute(String string,
                         Object object)

Specified by:
setAttribute in interface ServletContext

removeAttribute

public void removeAttribute(String string)

Specified by:
removeAttribute in interface ServletContext

getServletContextName

public String getServletContextName()

Specified by:
getServletContextName in interface ServletContext


Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.