Package de.uplanet.lucy.server.connector
Class Cookie
- java.lang.Object
-
- de.uplanet.lucy.server.connector.Cookie
-
- All Implemented Interfaces:
de.uplanet.net.http.ICookie
public class Cookie extends Object implements de.uplanet.net.http.ICookie
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetComment()StringgetDomain()intgetMaxAge()StringgetName()StringgetPath()StringgetSameSite()StringgetValue()intgetVersion()booleanisHttpOnly()booleanisSecure()voidsetComment(String p_strComment)voidsetDomain(String p_strDomain)voidsetHttpOnly(boolean p_bHttpOnly)voidsetMaxAge(int p_iMaxAge)voidsetPath(String p_strPath)voidsetSameSite(String p_strSameSite)voidsetSecure(boolean p_bSecure)voidsetValue(String p_strValue)voidsetVersion(int p_iVersion)
-
-
-
Constructor Detail
-
Cookie
@ConstructorProperties({"name","value"}) public Cookie(String p_strName, String p_strValue)
Create a cookie with the given name and value.- Parameters:
p_strName- The name.p_strValue- The value.- Throws:
IllegalArgumentException- If the cookie name or value isnull.
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfacede.uplanet.net.http.ICookie
-
getValue
public String getValue()
- Specified by:
getValuein interfacede.uplanet.net.http.ICookie
-
setValue
public void setValue(String p_strValue)
- Specified by:
setValuein interfacede.uplanet.net.http.ICookie
-
getComment
public String getComment()
- Specified by:
getCommentin interfacede.uplanet.net.http.ICookie
-
setComment
public void setComment(String p_strComment)
- Specified by:
setCommentin interfacede.uplanet.net.http.ICookie
-
getDomain
public String getDomain()
- Specified by:
getDomainin interfacede.uplanet.net.http.ICookie
-
setDomain
public void setDomain(String p_strDomain)
- Specified by:
setDomainin interfacede.uplanet.net.http.ICookie
-
getMaxAge
public int getMaxAge()
- Specified by:
getMaxAgein interfacede.uplanet.net.http.ICookie
-
setMaxAge
public void setMaxAge(int p_iMaxAge)
- Specified by:
setMaxAgein interfacede.uplanet.net.http.ICookie
-
getPath
public String getPath()
- Specified by:
getPathin interfacede.uplanet.net.http.ICookie
-
setPath
public void setPath(String p_strPath)
- Specified by:
setPathin interfacede.uplanet.net.http.ICookie
-
getVersion
public int getVersion()
- Specified by:
getVersionin interfacede.uplanet.net.http.ICookie
-
setVersion
public void setVersion(int p_iVersion)
- Specified by:
setVersionin interfacede.uplanet.net.http.ICookie
-
isSecure
public boolean isSecure()
- Specified by:
isSecurein interfacede.uplanet.net.http.ICookie
-
setSecure
public void setSecure(boolean p_bSecure)
- Specified by:
setSecurein interfacede.uplanet.net.http.ICookie
-
isHttpOnly
public boolean isHttpOnly()
- Specified by:
isHttpOnlyin interfacede.uplanet.net.http.ICookie
-
setHttpOnly
public void setHttpOnly(boolean p_bHttpOnly)
- Specified by:
setHttpOnlyin interfacede.uplanet.net.http.ICookie
-
getSameSite
public String getSameSite()
- Specified by:
getSameSitein interfacede.uplanet.net.http.ICookie
-
setSameSite
public void setSameSite(String p_strSameSite)
- Specified by:
setSameSitein interfacede.uplanet.net.http.ICookie
-
-