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 String
getComment()
String
getDomain()
int
getMaxAge()
String
getName()
String
getPath()
String
getSameSite()
String
getValue()
int
getVersion()
boolean
isHttpOnly()
boolean
isSecure()
void
setComment(String p_strComment)
void
setDomain(String p_strDomain)
void
setHttpOnly(boolean p_bHttpOnly)
void
setMaxAge(int p_iMaxAge)
void
setPath(String p_strPath)
void
setSameSite(String p_strSameSite)
void
setSecure(boolean p_bSecure)
void
setValue(String p_strValue)
void
setVersion(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:
getName
in interfacede.uplanet.net.http.ICookie
-
getValue
public String getValue()
- Specified by:
getValue
in interfacede.uplanet.net.http.ICookie
-
setValue
public void setValue(String p_strValue)
- Specified by:
setValue
in interfacede.uplanet.net.http.ICookie
-
getComment
public String getComment()
- Specified by:
getComment
in interfacede.uplanet.net.http.ICookie
-
setComment
public void setComment(String p_strComment)
- Specified by:
setComment
in interfacede.uplanet.net.http.ICookie
-
getDomain
public String getDomain()
- Specified by:
getDomain
in interfacede.uplanet.net.http.ICookie
-
setDomain
public void setDomain(String p_strDomain)
- Specified by:
setDomain
in interfacede.uplanet.net.http.ICookie
-
getMaxAge
public int getMaxAge()
- Specified by:
getMaxAge
in interfacede.uplanet.net.http.ICookie
-
setMaxAge
public void setMaxAge(int p_iMaxAge)
- Specified by:
setMaxAge
in interfacede.uplanet.net.http.ICookie
-
getPath
public String getPath()
- Specified by:
getPath
in interfacede.uplanet.net.http.ICookie
-
setPath
public void setPath(String p_strPath)
- Specified by:
setPath
in interfacede.uplanet.net.http.ICookie
-
getVersion
public int getVersion()
- Specified by:
getVersion
in interfacede.uplanet.net.http.ICookie
-
setVersion
public void setVersion(int p_iVersion)
- Specified by:
setVersion
in interfacede.uplanet.net.http.ICookie
-
isSecure
public boolean isSecure()
- Specified by:
isSecure
in interfacede.uplanet.net.http.ICookie
-
setSecure
public void setSecure(boolean p_bSecure)
- Specified by:
setSecure
in interfacede.uplanet.net.http.ICookie
-
isHttpOnly
public boolean isHttpOnly()
- Specified by:
isHttpOnly
in interfacede.uplanet.net.http.ICookie
-
setHttpOnly
public void setHttpOnly(boolean p_bHttpOnly)
- Specified by:
setHttpOnly
in interfacede.uplanet.net.http.ICookie
-
getSameSite
public String getSameSite()
- Specified by:
getSameSite
in interfacede.uplanet.net.http.ICookie
-
setSameSite
public void setSameSite(String p_strSameSite)
- Specified by:
setSameSite
in interfacede.uplanet.net.http.ICookie
-
-