railo.runtime.tag
Class Header

java.lang.Object
  extended by railo.runtime.ext.tag.TagImpl
      extended by railo.runtime.tag.Header
All Implemented Interfaces:
javax.servlet.jsp.tagext.Tag

public final class Header
extends TagImpl

Generates custom HTTP response headers to return to the client.


Field Summary
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
Header()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void release()
           
 void setCharset(String charset)
           
 void setName(String name)
          set the value name A name for the header.
 void setStatuscode(double statuscode)
          set the value statuscode A number that sets the HTTP status code.
 void setStatustext(String statustext)
          set the value statustext Text that explains the status code.
 void setValue(String value)
          set the value value A value for the HTTP header.
 
Methods inherited from class railo.runtime.ext.tag.TagImpl
getParent, required, required, required, required, setPageContext, setPageContext, setParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Header

public Header()
Method Detail

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class TagImpl
See Also:
Tag.release()

setValue

public void setValue(String value)
set the value value A value for the HTTP header. This attribute is used in conjunction with the name attribute.

Parameters:
value - value to set

setStatustext

public void setStatustext(String statustext)
set the value statustext Text that explains the status code. This attribute is used in conjunction with the statusCode attribute.

Parameters:
statustext - value to set

setName

public void setName(String name)
set the value name A name for the header.

Parameters:
name - value to set

setStatuscode

public void setStatuscode(double statuscode)
set the value statuscode A number that sets the HTTP status code.

Parameters:
statuscode - value to set

setCharset

public void setCharset(String charset)
Parameters:
charset - The charset to set.

doStartTag

public int doStartTag()
               throws PageException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class TagImpl
Throws:
PageException
See Also:
Tag.doStartTag()

doEndTag

public int doEndTag()
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class TagImpl
See Also:
Tag.doEndTag()


Copyright © 2012 Railo