Home » tiles-2.2.1-src » org.apache.tiles.servlet » context » [javadoc | source]
org.apache.tiles.servlet.context
public final class: ServletUtil [javadoc | source]
java.lang.Object
   org.apache.tiles.servlet.context.ServletUtil
Utilities for Tiles servlet support.
Field Summary
public static final  String COMPOSE_STACK_ATTRIBUTE_NAME    The name of the attribute that will contain the compose stack. 
public static final  String FORCE_INCLUDE_ATTRIBUTE_NAME    Name of the attribute used to store the force-include option.
    since: 2.0.6 -
 
public static final  String CURRENT_CONTAINER_ATTRIBUTE_NAME    Name of the attribute used to store the current used container. 
Method from org.apache.tiles.servlet.context.ServletUtil Summary:
getComposeStack,   getContainer,   getContainer,   getCurrentContainer,   getServletContext,   getServletRequest,   isForceInclude,   setContainer,   setContainer,   setCurrentContainer,   setCurrentContainer,   setForceInclude,   wrapServletException
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tiles.servlet.context.ServletUtil Detail:
 public static ArrayStack<Object> getComposeStack(HttpServletRequest request) 
    Returns the compose stack, that is used by the tags to compose definitions, attributes, etc.
 public static TilesContainer getContainer(ServletContext context) 
    Returns the default Tiles container.
 public static TilesContainer getContainer(ServletContext context,
    String key) 
    Returns a specific Tiles container.
 public static TilesContainer getCurrentContainer(ServletRequest request,
    ServletContext context) 
    Returns the current container that has been set, or the default one.
 public static ServletContext getServletContext(TilesApplicationContext applicationContext) 
    Gets a servlet context from a TilesApplicationContext.
 public static ServletTilesRequestContext getServletRequest(TilesRequestContext request) 
    Opens a TilesRequestContext until it finds a ServletTilesRequestContext.
 public static boolean isForceInclude(HttpServletRequest request) 
    Returns true if forced include of the result is needed.
 public static  void setContainer(ServletContext context,
    TilesContainer container) 
    Configures the default container to be used in the application.
 public static  void setContainer(ServletContext context,
    TilesContainer container,
    String key) 
    Configures the container to be used in the application.
 public static  void setCurrentContainer(ServletRequest request,
    ServletContext context,
    String key) 
    Sets the current container to use in web pages.
 public static  void setCurrentContainer(ServletRequest request,
    ServletContext context,
    TilesContainer container) 
    Sets the current container to use in web pages.
 public static  void setForceInclude(HttpServletRequest request,
    boolean forceInclude) 
    Sets the option that enables the forced include of the response.
 public static IOException wrapServletException(ServletException ex,
    String message) 
    Wraps a ServletException to create an IOException with the root cause if present.