Class CookieDescriptor


public class CookieDescriptor extends IgnorableDescriptor<CookieDescriptor>
A description of a cookie found in a request or response.
Since:
3.0
Author:
Clyde Stubbs, Andy Wilkinson
See Also:
  • Constructor Details

    • CookieDescriptor

      protected CookieDescriptor(String name)
      Creates a new CookieDescriptor describing the cookie with the given name.
      Parameters:
      name - the name
  • Method Details

    • optional

      public final CookieDescriptor optional()
      Marks the cookie as optional.
      Returns:
      this
    • getName

      public final String getName()
      Returns the name for the cookie.
      Returns:
      the cookie name
    • isOptional

      public final boolean isOptional()
      Returns true if the described cookie is optional, otherwise false.
      Returns:
      true if the described cookie is optional, otherwise false