org.apache.taglibs.mailer2
Class HeaderTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.apache.taglibs.mailer2.HeaderTag
All Implemented Interfaces:
BodyTag, IterationTag, JspTag, Serializable, Tag

public class HeaderTag
extends BodyTagSupport

JSP tag mt:header is used to set additional headers in an e-mail message.

It is a child of mt:mail or mt:part.

Version:
2.0
Author:
Jeroen van Vianen
See Also:
Serialized Form

Field Summary
 Logger log
          Used for logging.
 
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
HeaderTag()
          Default zero-arg constructor.
 
Method Summary
 int doAfterBody()
           
 int doEndTag()
           
 int doStartTag()
           
 String getBody()
          Returns the body content.
 String getName()
          Returns the name of this header.
 String getValue()
          Returns the value of this header.
 void release()
           
 void setBody(String body)
          Sets the body attribute.
 void setName(String name)
          Sets the name of the header.
 void setValue(String value)
          Sets the value of the header.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, resetCustomAttributes, 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
 

Field Detail

log

public Logger log
Used for logging.

Constructor Detail

HeaderTag

public HeaderTag()
Default zero-arg constructor.

Method Detail

doStartTag

public int doStartTag()
               throws JspException
Throws:
JspException

doAfterBody

public int doAfterBody()
                throws JspException
Throws:
JspException

doEndTag

public int doEndTag()
             throws JspException
Throws:
JspException

release

public void release()

getBody

public String getBody()
Returns the body content.

Returns:
The body content

setBody

public void setBody(String body)
Sets the body attribute.

Parameters:
body - The body content

setName

public void setName(String name)
Sets the name of the header.

Parameters:
name - The name of the header

setValue

public void setValue(String value)
Sets the value of the header.

Parameters:
value - The value of the header

getName

public String getName()
Returns the name of this header.

Returns:
The name

getValue

public String getValue()
Returns the value of this header.

Returns:
The value


Copyright © 2004 Apache Software Foundation, http://jakarta.apache.org/taglibs