Class CookieWrapper
- java.lang.Object
-
- javax.servlet.http.Cookie
-
- org.apache.felix.http.base.internal.javaxwrappers.CookieWrapper
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class CookieWrapper extends javax.servlet.http.Cookie
Javax cookie based on a jakarta cookie- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CookieWrapper(@NotNull jakarta.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 javax.servlet.http.Cookie[]
wrap(jakarta.servlet.http.Cookie[] array)
Wrap an array of cookies
-
-
-
Method Detail
-
wrap
public static javax.servlet.http.Cookie[] wrap(jakarta.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 classjavax.servlet.http.Cookie
-
setDomain
public void setDomain(String domain)
- Overrides:
setDomain
in classjavax.servlet.http.Cookie
-
setMaxAge
public void setMaxAge(int expiry)
- Overrides:
setMaxAge
in classjavax.servlet.http.Cookie
-
setPath
public void setPath(String uri)
- Overrides:
setPath
in classjavax.servlet.http.Cookie
-
setSecure
public void setSecure(boolean flag)
- Overrides:
setSecure
in classjavax.servlet.http.Cookie
-
setValue
public void setValue(String newValue)
- Overrides:
setValue
in classjavax.servlet.http.Cookie
-
setVersion
public void setVersion(int v)
- Overrides:
setVersion
in classjavax.servlet.http.Cookie
-
setHttpOnly
public void setHttpOnly(boolean isHttpOnly)
- Overrides:
setHttpOnly
in classjavax.servlet.http.Cookie
-
-