Class CookieWrapper
- java.lang.Object
-
- jakarta.servlet.http.Cookie
-
- org.apache.felix.http.jakartawrappers.CookieWrapper
-
- All Implemented Interfaces:
Serializable,Cloneable
public class CookieWrapper extends jakarta.servlet.http.CookieCookie- 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 voidsetComment(String purpose)voidsetDomain(String domain)voidsetHttpOnly(boolean isHttpOnly)voidsetMaxAge(int expiry)voidsetPath(String uri)voidsetSecure(boolean flag)voidsetValue(String newValue)voidsetVersion(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:
setCommentin classjakarta.servlet.http.Cookie
-
setDomain
public void setDomain(String domain)
- Overrides:
setDomainin classjakarta.servlet.http.Cookie
-
setMaxAge
public void setMaxAge(int expiry)
- Overrides:
setMaxAgein classjakarta.servlet.http.Cookie
-
setPath
public void setPath(String uri)
- Overrides:
setPathin classjakarta.servlet.http.Cookie
-
setSecure
public void setSecure(boolean flag)
- Overrides:
setSecurein classjakarta.servlet.http.Cookie
-
setValue
public void setValue(String newValue)
- Overrides:
setValuein classjakarta.servlet.http.Cookie
-
setVersion
public void setVersion(int v)
- Overrides:
setVersionin classjakarta.servlet.http.Cookie
-
setHttpOnly
public void setHttpOnly(boolean isHttpOnly)
- Overrides:
setHttpOnlyin classjakarta.servlet.http.Cookie
-
-