Class CookieWrapper
- java.lang.Object
-
- jakarta.servlet.http.Cookie
-
- org.apache.felix.http.base.internal.jakartawrappers.CookieWrapper
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class CookieWrapper extends jakarta.servlet.http.Cookie
Cookie- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CookieWrapper(javax.servlet.http.Cookie c)
Create new cookie
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setComment(String purpose)
void
setDomain(String domain)
void
setHttpOnly(boolean isHttpOnly)
void
setMaxAge(int expiry)
void
setPath(String uri)
void
setSecure(boolean flag)
void
setValue(String newValue)
void
setVersion(int v)
static jakarta.servlet.http.Cookie[]
wrap(javax.servlet.http.Cookie[] array)
Wrap an array of cookies
-
-
-
Method Detail
-
wrap
public static jakarta.servlet.http.Cookie[] wrap(javax.servlet.http.Cookie[] array)
Wrap an array of cookies- Parameters:
array
- The array- Returns:
- The result
-
setComment
public void setComment(String purpose)
- Overrides:
setComment
in classjakarta.servlet.http.Cookie
-
setDomain
public void setDomain(String domain)
- Overrides:
setDomain
in classjakarta.servlet.http.Cookie
-
setMaxAge
public void setMaxAge(int expiry)
- Overrides:
setMaxAge
in classjakarta.servlet.http.Cookie
-
setPath
public void setPath(String uri)
- Overrides:
setPath
in classjakarta.servlet.http.Cookie
-
setSecure
public void setSecure(boolean flag)
- Overrides:
setSecure
in classjakarta.servlet.http.Cookie
-
setValue
public void setValue(String newValue)
- Overrides:
setValue
in classjakarta.servlet.http.Cookie
-
setVersion
public void setVersion(int v)
- Overrides:
setVersion
in classjakarta.servlet.http.Cookie
-
setHttpOnly
public void setHttpOnly(boolean isHttpOnly)
- Overrides:
setHttpOnly
in classjakarta.servlet.http.Cookie
-
-