Class ProxyCookie

java.lang.Object
jakarta.servlet.http.Cookie
com.tremolosecurity.proxy.ProxyCookie
All Implemented Interfaces:
Serializable, Cloneable

public class ProxyCookie extends jakarta.servlet.http.Cookie
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProxyCookie(jakarta.servlet.http.Cookie source)
     
    ProxyCookie(String name, String value)
    Constructs a cookie with the specified name and value.
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class jakarta.servlet.http.Cookie

    clone, equals, getAttribute, getAttributes, getComment, getDomain, getMaxAge, getName, getPath, getSecure, getVersion, hashCode, isHttpOnly, setAttribute, setComment, setDomain, setHttpOnly, setMaxAge, setPath, setSecure, setValue, setVersion, toString

    Methods inherited from class Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ProxyCookie

      public ProxyCookie(String name, String value)
      Constructs a cookie with the specified name and value.

      The name must conform to RFC 6265. However, vendors may provide a configuration option that allows cookie names conforming to the original Netscape Cookie Specification to be accepted.

      The name of a cookie cannot be changed once the cookie has been created.

      The value can be anything the server chooses to send. Its value is probably of interest only to the server. The cookie's value can be changed after creation with the setValue method.

      Parameters:
      name - the name of the cookie
      value - the value of the cookie
      Throws:
      IllegalArgumentException - if the cookie name is null or empty or contains any illegal characters (for example, a comma, space, or semicolon) or matches a token reserved for use by the cookie protocol
      See Also:
      • Cookie.setValue(String)
      • Cookie.setVersion(int)
    • ProxyCookie

      public ProxyCookie(jakarta.servlet.http.Cookie source)
  • Method Details

    • getValue

      public String getValue()
      Overrides:
      getValue in class jakarta.servlet.http.Cookie