org.jasig.portlet.test.cookie
Class CookieBeanWrapper
java.lang.Object
org.jasig.portlet.test.cookie.CookieBeanWrapper
public class CookieBeanWrapper
- extends Object
Java bean that wraps a Cookie object.
The primary purpose for this class is due to Cookie's
use of "getSecure" instead of "isSecure".
- Version:
- $Id: CookieBeanWrapper.java 22997 2011-02-20 20:33:12Z nblair $
- Author:
- Nicholas Blair
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CookieBeanWrapper
public CookieBeanWrapper(javax.servlet.http.Cookie cookie)
- Parameters:
cookie -
getComment
public String getComment()
- Returns:
- See Also:
Cookie.getComment()
getDomain
public String getDomain()
- Returns:
- See Also:
Cookie.getDomain()
getMaxAge
public int getMaxAge()
- Returns:
- See Also:
Cookie.getMaxAge()
getName
public String getName()
- Returns:
- See Also:
Cookie.getName()
getPath
public String getPath()
- Returns:
- See Also:
Cookie.getPath()
isSecure
public boolean isSecure()
- Returns:
- See Also:
Cookie.getSecure()
getValue
public String getValue()
- Returns:
- See Also:
Cookie.getValue()
getVersion
public int getVersion()
- Returns:
- See Also:
Cookie.getVersion()
setComment
public void setComment(String purpose)
- Parameters:
purpose - - See Also:
Cookie.setComment(java.lang.String)
setDomain
public void setDomain(String pattern)
- Parameters:
pattern - - See Also:
Cookie.setDomain(java.lang.String)
setMaxAge
public void setMaxAge(int expiry)
- Parameters:
expiry - - See Also:
Cookie.setMaxAge(int)
setPath
public void setPath(String uri)
- Parameters:
uri - - See Also:
Cookie.setPath(java.lang.String)
setSecure
public void setSecure(boolean flag)
- Parameters:
flag - - See Also:
Cookie.setSecure(boolean)
setValue
public void setValue(String newValue)
- Parameters:
newValue - - See Also:
Cookie.setValue(java.lang.String)
setVersion
public void setVersion(int v)
- Parameters:
v - - See Also:
Cookie.setVersion(int)
Copyright © 2012 Jasig. All Rights Reserved.