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
ConstructorsConstructorDescriptionProxyCookie(jakarta.servlet.http.Cookie source) ProxyCookie(String name, String value) Constructs a cookie with the specified name and value. -
Method Summary
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
-
Constructor Details
-
ProxyCookie
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
setValuemethod.- Parameters:
name- the name of the cookievalue- 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:
-
ProxyCookie
public ProxyCookie(jakarta.servlet.http.Cookie source)
-
-
Method Details
-
getValue
- Overrides:
getValuein classjakarta.servlet.http.Cookie
-