Class ResponseCookie

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

public final class ResponseCookie extends Object
A representation of a Cookie returned in a response.
Since:
3.0
Author:
Clyde Stubbs
  • Constructor Details

    • ResponseCookie

      public ResponseCookie(String name, String value)
      Creates a new ResponseCookie 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