Class CookieWrapper

java.lang.Object
javax.servlet.http.Cookie
org.apache.felix.http.javaxwrappers.CookieWrapper
All Implemented Interfaces:
Serializable, Cloneable

public class CookieWrapper extends javax.servlet.http.Cookie
Javax cookie based on a jakarta cookie
See Also:
  • Constructor Details

    • CookieWrapper

      public CookieWrapper(@NotNull @NotNull jakarta.servlet.http.Cookie c)
      Create new cookie
      Parameters:
      c - Wrapped cookie
  • Method Details

    • 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
    • getName

      public String getName()
      Overrides:
      getName in class javax.servlet.http.Cookie
    • getValue

      public String getValue()
      Overrides:
      getValue in class javax.servlet.http.Cookie
    • setValue

      public void setValue(String value)
      Overrides:
      setValue in class javax.servlet.http.Cookie
    • setComment

      public void setComment(String purpose)
      Overrides:
      setComment in class javax.servlet.http.Cookie
    • getComment

      public String getComment()
      Overrides:
      getComment in class javax.servlet.http.Cookie
    • setDomain

      public void setDomain(String domain)
      Overrides:
      setDomain in class javax.servlet.http.Cookie
    • getDomain

      public String getDomain()
      Overrides:
      getDomain in class javax.servlet.http.Cookie
    • setMaxAge

      public void setMaxAge(int expiry)
      Overrides:
      setMaxAge in class javax.servlet.http.Cookie
    • getMaxAge

      public int getMaxAge()
      Overrides:
      getMaxAge in class javax.servlet.http.Cookie
    • setPath

      public void setPath(String uri)
      Overrides:
      setPath in class javax.servlet.http.Cookie
    • getPath

      public String getPath()
      Overrides:
      getPath in class javax.servlet.http.Cookie
    • setSecure

      public void setSecure(boolean flag)
      Overrides:
      setSecure in class javax.servlet.http.Cookie
    • getSecure

      public boolean getSecure()
      Overrides:
      getSecure in class javax.servlet.http.Cookie
    • setVersion

      public void setVersion(int v)
      Overrides:
      setVersion in class javax.servlet.http.Cookie
    • getVersion

      public int getVersion()
      Overrides:
      getVersion in class javax.servlet.http.Cookie
    • setHttpOnly

      public void setHttpOnly(boolean isHttpOnly)
      Overrides:
      setHttpOnly in class javax.servlet.http.Cookie
    • isHttpOnly

      public boolean isHttpOnly()
      Overrides:
      isHttpOnly in class javax.servlet.http.Cookie