Class Cookie


public class Cookie extends Object
Igor Polevoy
  • Constructor Details

    • Cookie

      public Cookie(String name, String value)
    • Cookie

      public Cookie(String name, String value, boolean httpOnly)
  • Method Details

    • setMaxAge

      public void setMaxAge(int maxAge)
    • getMaxAge

      public int getMaxAge()
    • setPath

      public void setPath(String path)
    • getPath

      public String getPath()
    • setDomain

      public void setDomain(String domain)
    • getDomain

      public String getDomain()
    • setSecure

      public void setSecure(boolean secure)
    • isSecure

      public boolean isSecure()
    • getName

      public String getName()
    • setValue

      public void setValue(String value)
    • getValue

      public String getValue()
    • getVersion

      public int getVersion()
    • setVersion

      public void setVersion(int version)
    • setHttpOnly

      public void setHttpOnly()
      Sets this cookie to be HTTP only. This will only work with Servlet 3
    • isHttpOnly

      public boolean isHttpOnly()
      Tells if a cookie HTTP only or not. This will only work with Servlet 3
    • setHttpOnly

      public void setHttpOnly(boolean httpOnly)
      Sets this cookie to be Http only or not
    • toString

      public String toString()
      toString in class Object