Save This Page
Home » cocoon-2.1.11-src » org.apache » cocoon » acting » [javadoc | source]
org.apache.cocoon.acting
public class: CookieCreatorAction [javadoc | source]
java.lang.Object
   org.apache.avalon.framework.logger.AbstractLogEnabled
      org.apache.cocoon.acting.AbstractAction
         org.apache.cocoon.acting.ComposerAction
            org.apache.cocoon.acting.CookieCreatorAction

All Implemented Interfaces:
    org.apache.avalon.framework.component.Composable, Action

The CookieCreatorAction class create or remove cookies. The action needs these parameters:
name
the cookie name
value
the cookie value
comment
a comment to the cookie
domain
the domain the cookie is sent to
path
the path of the domain the cookie is sent to
secure
use a secure transport protocol (default is false)
maxage
Age in seconds. Use -1 to remove cookie. (default is 0; cookie lives within the session and it is not stored)
version
version of cookie(default is 0)
If you want to set a cookie you only need to specify the cookie name. Its value is an empty string as default. The maxage is 0 that means the cookie will live until the session is invalidated. If you want to remove a cookie set its maxage to -1.
Fields inherited from org.apache.cocoon.acting.ComposerAction:
manager
Fields inherited from org.apache.cocoon.acting.AbstractAction:
EMPTY_MAP
Method from org.apache.cocoon.acting.CookieCreatorAction Summary:
act
Methods from org.apache.cocoon.acting.ComposerAction:
compose
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.acting.CookieCreatorAction Detail:
 public Map act(Redirector redirector,
    SourceResolver resolver,
    Map objectModel,
    String src,
    Parameters parameters) throws Exception 
    Description of the Method