Cookie management specification must define
Create "Cookie" headers for an array of Cookies.paramcookies the Cookies format into a Cookie headerreturna Header for the given Cookies.throwsIllegalArgumentException if an input parameter is illegal
Returns version of the state management this cookie specification conforms to.returnversion of the state management specification
Returns a request header identifying what version of the state management specification is understood. May be null if the cookie specification does not support Cookie2 header.
null
Determines if a Cookie matches the target location.paramcookie the Cookie to be matchedparamorigin the target to test againstreturntrue if the cookie should be submitted with a request with given attributes, false otherwise.
Parse the "Set-Cookie" Header into an array of Cookies. This method will not perform the validation of the resultant {@link Cookie}ssee#validateparamheader the Set-Cookie received from the serverparamorigin details of the cookie originreturnan array of Cookies parsed from the headerthrowsMalformedCookieException if an exception occurs during parsing
This method will not perform the validation of the resultant {@link Cookie}s
Validate the cookie according to validation rules defined by the cookie specification.paramcookie the Cookie to validateparamorigin details of the cookie originthrowsMalformedCookieException if the cookie is invalid