| java.lang.Object org.apache.cocoon.environment.portlet.PortletCookie
PortletCookie | final public class PortletCookie implements Cookie(Code) | | Implements
Cookie interface for the JSR-168 Portlet environment.
Portlet preferences are available in the Cocoon as Cookie objects.
author: Alex Rudnev author: Vadim Gritsenko version: CVS $Id: PortletCookie.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public String | getComment() | public String | getDomain() | public int | getMaxAge() | public String | getName() Returns the name of the cookie. | public String | getPath() | public boolean | getSecure() | public String | getValue() Returns the value of the cookie. | public int | getVersion() Returns the version of the protocol this cookie complies
with. | public void | init(String name, String value) Constructs a cookie with a specified name and value. | public void | setComment(String purpose) | public void | setDomain(String pattern) | public void | setMaxAge(int expiry) | public void | setPath(String uri) | public void | setSecure(boolean flag) | public void | setValue(String newValue) Assigns a new value to a cookie after the cookie is created.
If you use a binary value, you may want to use BASE64 encoding.
With Version 0 cookies, values should not contain white
space, brackets, parentheses, equals signs, commas,
double quotes, slashes, question marks, at signs, colons,
and semicolons. | public void | setVersion(int v) Sets the version of the cookie protocol this cookie complies
with. |
getName | public String getName()(Code) | | Returns the name of the cookie. The name cannot be changed after
creation.
a String specifying the cookie's name |
init | public void init(String name, String value)(Code) | | Constructs a cookie with a specified name and value.
Parameters: name - a String specifying the name of the cookie Parameters: value - a String specifying the value of the cookie See Also: PortletCookie.setValue(String) |
setComment | public void setComment(String purpose)(Code) | | This method does nothing
|
setDomain | public void setDomain(String pattern)(Code) | | This method does nothing
|
setMaxAge | public void setMaxAge(int expiry)(Code) | | This method does nothing
|
setPath | public void setPath(String uri)(Code) | | This method does nothing
|
setValue | public void setValue(String newValue)(Code) | | Assigns a new value to a cookie after the cookie is created.
If you use a binary value, you may want to use BASE64 encoding.
With Version 0 cookies, values should not contain white
space, brackets, parentheses, equals signs, commas,
double quotes, slashes, question marks, at signs, colons,
and semicolons. Empty values may not behave the same way
on all browsers.
Parameters: newValue - a String specifying the new value See Also: PortletCookie.getValue() See Also: Cookie |
setVersion | public void setVersion(int v)(Code) | | Sets the version of the cookie protocol this cookie complies
with. This method does nothing, version 0 is always returned in
getVersion
See Also: PortletCookie.getVersion() |
|
|