org.apache.taglibs.io
Class URLHeaderTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.apache.taglibs.io.AbstractBodyTag
              extended byorg.apache.taglibs.io.URLHeaderTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class URLHeaderTag
extends AbstractBodyTag

Defines a HTTP header for the current HTTP request tag

Version:
$Revision$
Author:
James Strachan
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.taglibs.io.AbstractBodyTag
TRACE, WARN
 
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
URLHeaderTag()
           
 
Method Summary
 int doAfterBody()
           
 int doStartTag()
           
protected  void fireHeader()
           
 void release()
           
 void setName(java.lang.String name)
          Sets the name of the HTTP header
 void setValue(java.lang.String value)
          Sets the value of the HTTP header.
 
Methods inherited from class org.apache.taglibs.io.AbstractBodyTag
handleException, warn, warn
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doEndTag, doInitBody, 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

URLHeaderTag

public URLHeaderTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

release

public void release()

setName

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


setValue

public void setValue(java.lang.String value)
Sets the value of the HTTP header. If no value is set then the body of the tag is used


fireHeader

protected void fireHeader()
                   throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.