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

java.lang.Object
  extended by org.apache.tiles.jsp.taglib.definition.InitContainerTag.RuntimeConfiguredContext
Enclosing class:
InitContainerTag

public static class InitContainerTag.RuntimeConfiguredContext
extends java.lang.Object

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


Constructor Summary
InitContainerTag.RuntimeConfiguredContext(ServletContext rootContext)
          Constructor.
 
Method Summary
 java.lang.Object getAttribute(java.lang.String string)
          
 java.util.Enumeration getAttributeNames()
          
 ServletContext getContext(java.lang.String string)
          
 java.lang.String getContextPath()
          
 java.lang.String getInitParameter(java.lang.String string)
          Takes the init parameters either from the custom parameters or from the root context.
 java.util.Enumeration getInitParameterNames()
          Returns init parameter names, including the custom and the original ones.
 int getMajorVersion()
          
 java.lang.String getMimeType(java.lang.String string)
          
 int getMinorVersion()
          
 RequestDispatcher getNamedDispatcher(java.lang.String string)
          
 java.lang.String getRealPath(java.lang.String string)
          
 RequestDispatcher getRequestDispatcher(java.lang.String string)
          
 java.net.URL getResource(java.lang.String string)
          
 java.io.InputStream getResourceAsStream(java.lang.String string)
          
 java.util.Set getResourcePaths(java.lang.String string)
          
 java.lang.String getServerInfo()
          
 Servlet getServlet(java.lang.String string)
          
 java.lang.String getServletContextName()
          
 java.util.Enumeration getServletNames()
          
 java.util.Enumeration getServlets()
          
 void log(java.lang.Exception exception, java.lang.String string)
          
 void log(java.lang.String string)
          
 void log(java.lang.String string, java.lang.Throwable throwable)
          
 void removeAttribute(java.lang.String string)
          
 void setAttribute(java.lang.String string, java.lang.Object object)
          
 void setInitParameter(java.lang.String name, java.lang.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(java.lang.String string)


getMajorVersion

public int getMajorVersion()


getMinorVersion

public int getMinorVersion()


getMimeType

public java.lang.String getMimeType(java.lang.String string)


getResourcePaths

public java.util.Set getResourcePaths(java.lang.String string)


getResource

public java.net.URL getResource(java.lang.String string)
                         throws java.net.MalformedURLException

Throws:
java.net.MalformedURLException

getResourceAsStream

public java.io.InputStream getResourceAsStream(java.lang.String string)


getRequestDispatcher

public RequestDispatcher getRequestDispatcher(java.lang.String string)


getNamedDispatcher

public RequestDispatcher getNamedDispatcher(java.lang.String string)


getServlet

public Servlet getServlet(java.lang.String string)
                   throws ServletException

Throws:
ServletException

getServlets

public java.util.Enumeration getServlets()


getServletNames

public java.util.Enumeration getServletNames()


log

public void log(java.lang.String string)


log

public void log(java.lang.Exception exception,
                java.lang.String string)


log

public void log(java.lang.String string,
                java.lang.Throwable throwable)


getRealPath

public java.lang.String getRealPath(java.lang.String string)


getServerInfo

public java.lang.String getServerInfo()


getInitParameter

public java.lang.String getInitParameter(java.lang.String string)
Takes the init parameters either from the custom parameters or from the root context.

Parameters:
string - The parameter name.
Returns:
The value of the parameter.
See Also:
javax.servlet.ServletContext#getInitParameter(java.lang.String)

setInitParameter

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

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

getInitParameterNames

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

Returns:
An enumeration of String representing the init parameter names.
See Also:
javax.servlet.ServletContext#getInitParameterNames()

getAttribute

public java.lang.Object getAttribute(java.lang.String string)


getAttributeNames

public java.util.Enumeration getAttributeNames()


setAttribute

public void setAttribute(java.lang.String string,
                         java.lang.Object object)


removeAttribute

public void removeAttribute(java.lang.String string)


getServletContextName

public java.lang.String getServletContextName()


getContextPath

public java.lang.String getContextPath()