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

org.apache.tiles.jsp.taglib
Class TilesBodyTag

Package class diagram package TilesBodyTag
java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.tiles.jsp.taglib.TilesBodyTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally
Direct Known Subclasses:
AddAttributeTag, InitContainerTag, RenderTag, RoleSecurityTagSupport

public abstract class TilesBodyTag
extends BodyTagSupport
implements TryCatchFinally

An abstract common base class to extend for all Tiles JSP tag handlers which access body content. Defines useful life cycle extension points.

Since:
2.1.1
Version:
$Rev: 727708 $ $Date: 2008-12-18 13:36:35 +0100 (gio, 18 dic 2008) $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
TilesBodyTag()
           
 
Method Summary
 void doCatch(Throwable throwable)
          Default no-op implementation, but overrideable if needed.
 void doFinally()
          Called after doEndTag().
 void release()
          Release any per-instance resources, releasing any resources or state before this tag instance is disposed.
protected  void reset()
          Release any per-invocation resources, resetting any resources or state that should be cleared between successive invocations of Tag.doEndTag() and Tag.doStartTag().
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

TilesBodyTag

public TilesBodyTag()
Method Detail

doCatch

public void doCatch(Throwable throwable)
             throws Throwable
Default no-op implementation, but overrideable if needed.

Specified by:
doCatch in interface TryCatchFinally
Parameters:
throwable - The throwable object.
Throws:
Throwable - The throwable object itself, by default.
See Also:
TryCatchFinally.doCatch(Throwable)

doFinally

public void doFinally()
Called after doEndTag(). This common implementation calls reset() to release any per-invocation resources.

Specified by:
doFinally in interface TryCatchFinally
See Also:
TryCatchFinally.doFinally()

reset

protected void reset()
Release any per-invocation resources, resetting any resources or state that should be cleared between successive invocations of Tag.doEndTag() and Tag.doStartTag().


release

public void release()
Release any per-instance resources, releasing any resources or state before this tag instance is disposed.

Specified by:
release in interface Tag
Overrides:
release in class BodyTagSupport
See Also:
Tag.release()


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