This project has retired. For details please refer to its Attic page.
InitContainerTag.RuntimeConfiguredContext (Tiles 2 2.1.4 API)

org.apache.tiles.jsp.taglib.definition
Class InitContainerTag.RuntimeConfiguredContext

Package class diagram package InitContainerTag.RuntimeConfiguredContext
java.lang.Object
  extended by org.apache.tiles.jsp.taglib.definition.InitContainerTag.RuntimeConfiguredContext
All Implemented Interfaces:
ServletContext
Enclosing class:
InitContainerTag

public static class InitContainerTag.RuntimeConfiguredContext
extends Object
implements ServletContext

A servlet context created "on the fly" for container initialization.


Constructor Summary
InitContainerTag.RuntimeConfiguredContext(ServletContext rootContext)
          Constructor.
 
Method Summary
 Object getAttribute(String string)
          
 Enumeration getAttributeNames()
          
 ServletContext getContext(String string)
          
 String getContextPath()
          
 String getInitParameter(String string)
          Takes the init parameters either from the custom parameters or from the root context.
 Enumeration getInitParameterNames()
          Returns init parameter names, including the custom and the original ones.
 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)
          
 void setInitParameter(String name, String value)
          Sets an init parameter value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitContainerTag.RuntimeConfiguredContext

public InitContainerTag.RuntimeConfiguredContext(ServletContext rootContext)
Constructor.

Parameters:
rootContext - The "real" servlet context.
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)
Takes the init parameters either from the custom parameters or from the root context.

Specified by:
getInitParameter in interface ServletContext
Parameters:
string - The parameter name.
Returns:
The value of the parameter.
See Also:
ServletContext.getInitParameter(java.lang.String)

setInitParameter

public void setInitParameter(String name,
                             String value)
Sets an init parameter value.

Parameters:
name - The name of the parameter.
value - The value of the parameter.

getInitParameterNames

public Enumeration getInitParameterNames()
Returns init parameter names, including the custom and the original ones.

Specified by:
getInitParameterNames in interface ServletContext
Returns:
An enumeration of String representing the init parameter names.
See Also:
ServletContext.getInitParameterNames()

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

getContextPath

public String getContextPath()

Specified by:
getContextPath in interface ServletContext


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