railo.runtime.tag
Class Cookie

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

public final class Cookie
extends TagImpl

Defines cookie variables, including expiration and security options.


Field Summary
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
Cookie()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void release()
           
 void setDomain(String domain)
          set the value domain
 void setEncode(boolean encode)
           
 void setEncodevalue(boolean encode)
           
 void setExpires(Object expires)
          set the value expires Schedules the expiration of a cookie variable.
 void setExpires(String expires)
          Deprecated. replaced with setExpires(Object expires):void
 void setHttponly(boolean httponly)
           
 void setName(String name)
          set the value name The name of the cookie variable.
 void setPath(String path)
          set the value path
 void setPreservecase(boolean preservecase)
           
 void setSecure(boolean secure)
          set the value secure Yes or No.
 void setValue(String value)
          set the value value The value assigned to the cookie variable.
 
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

Cookie

public Cookie()
Method Detail

release

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

setSecure

public void setSecure(boolean secure)
set the value secure Yes or No. Specifies that the variable must transmit securely. If the browser does not support Secure Socket Layer (SSL) security, the cookie is not sent.

Parameters:
secure - value to set

setValue

public void setValue(String value)
set the value value The value assigned to the cookie variable.

Parameters:
value - value to set

setDomain

public void setDomain(String domain)
set the value domain

Parameters:
domain - value to set

setPath

public void setPath(String path)
set the value path

Parameters:
path - value to set

setExpires

public void setExpires(Object expires)
set the value expires Schedules the expiration of a cookie variable. Can be specified as a date (as in, 10/09/97), number of days (as in, 10, 100), "Now", or "Never". Using Now effectively deletes the cookie from the client browser.

Parameters:
expires - value to set

setExpires

public void setExpires(String expires)
Deprecated. replaced with setExpires(Object expires):void

set the value expires Schedules the expiration of a cookie variable. Can be specified as a date (as in, 10/09/97), number of days (as in, 10, 100), "Now", or "Never". Using Now effectively deletes the cookie from the client browser.

Parameters:
expires - value to set

setName

public void setName(String name)
set the value name The name of the cookie variable.

Parameters:
name - value to set

setHttponly

public void setHttponly(boolean httponly)

setPreservecase

public void setPreservecase(boolean preservecase)

setEncodevalue

public void setEncodevalue(boolean encode)

setEncode

public void setEncode(boolean encode)

doStartTag

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

doEndTag

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


Copyright © 2012 Railo