Class RequestCookie

java.lang.Object
org.springframework.restdocs.operation.RequestCookie

public final class RequestCookie extends Object
A representation of a Cookie received in a request.
Since:
1.2.0
Author:
Andy Wilkinson
  • Constructor Details

    • RequestCookie

      public RequestCookie(String name, String value)
      Creates a new RequestCookie with the given name and value.
      Parameters:
      name - the name of the cookie
      value - the value of the cookie
  • Method Details

    • getName

      public String getName()
      Returns the name of the cookie.
      Returns:
      the name
    • getValue

      public String getValue()
      Returns the value of the cookie.
      Returns:
      the value