org.apache.taglibs.response
Class CookieSecureTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
              |
              +--org.apache.taglibs.response.CookieSecureTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class CookieSecureTag
extends javax.servlet.jsp.tagext.BodyTagSupport

JSP Tag secure, used to set the secure of a cookie.

Must be nested within an addCookie tag.

The cookie secure is set to the content of the body of the secure tag.

JSP Tag Lib Descriptor

 <name>secure</name>
 <tagclass>org.apache.taglibs.response.CookieSecureTag</tagclass>
 <bodycontent>JSP</bodycontent>
 <info>Set whether a cookie requires secure HTTPS.</info>
 

Author:
Glenn Nielsen
See Also:
Serialized Form

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_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
CookieSecureTag()
           
 
Method Summary
 int doAfterBody()
          Read the body of the secure tag to obtain the cookie secure.
 int doStartTag()
          Method called at start of tag, just returns EVAL_BODY_TAG
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doEndTag, doInitBody, getBodyContent, getPreviousOut, release, 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

CookieSecureTag

public CookieSecureTag()
Method Detail

doStartTag

public final int doStartTag()
                     throws javax.servlet.jsp.JspException
Method called at start of tag, just returns EVAL_BODY_TAG
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
EVAL_BODY_TAG

doAfterBody

public final int doAfterBody()
                      throws javax.servlet.jsp.JspException
Read the body of the secure tag to obtain the cookie secure.
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
SKIP_BODY


Copyright ? 2000 Apache Software Foundation. All Rights Reserved.