org.apache.tiles.servlet.context
Class ServletUtil

java.lang.Object
  extended by org.apache.tiles.servlet.context.ServletUtil

public final class ServletUtil
extends java.lang.Object

Utilities for Tiles servlet support.

Since:
2.0.6
Version:
$Rev: 619574 $ $Date: 2008-02-07 20:09:33 +0100 (Thu, 07 Feb 2008) $

Field Summary
static java.lang.String FORCE_INCLUDE_ATTRIBUTE_NAME
          Name of the attribute used to store the force-include option.
 
Method Summary
static boolean isForceInclude(javax.servlet.http.HttpServletRequest request)
          Returns true if forced include of the result is needed.
static void setForceInclude(javax.servlet.http.HttpServletRequest request, boolean forceInclude)
          Sets the option that enables the forced include of the response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORCE_INCLUDE_ATTRIBUTE_NAME

public static final java.lang.String FORCE_INCLUDE_ATTRIBUTE_NAME
Name of the attribute used to store the force-include option.

Since:
2.0.6
See Also:
Constant Field Values
Method Detail

isForceInclude

public static boolean isForceInclude(javax.servlet.http.HttpServletRequest request)
Returns true if forced include of the result is needed.

Parameters:
request - The HTTP request.
Returns:
If true the include operation must be forced.
Since:
2.0.6

setForceInclude

public static void setForceInclude(javax.servlet.http.HttpServletRequest request,
                                   boolean forceInclude)
Sets the option that enables the forced include of the response.

Parameters:
request - The HTTP request.
forceInclude - If true the include operation must be forced.
Since:
2.0.6