Uses of Class
org.springframework.restdocs.cookies.CookieDescriptor
Package
Description
Documenting the cookies of a RESTful API's requests and responses.
-
Uses of CookieDescriptor in org.springframework.restdocs.cookies
Modifier and TypeMethodDescriptionstatic CookieDescriptor
CookieDocumentation.cookieWithName
(String name) Creates aCookieDescriptor
that describes a cookie with the givenname
.final CookieDescriptor
CookieDescriptor.optional()
Marks the cookie as optional.Modifier and TypeMethodDescriptionprotected final Map<String,
CookieDescriptor> AbstractCookiesSnippet.getCookieDescriptors()
Returns the list ofCookieDescriptors
that will be used to generate the documentation.Modifier and TypeMethodDescriptionfinal RequestCookiesSnippet
RequestCookiesSnippet.and
(CookieDescriptor... additionalDescriptors) Returns a newRequestCookiesSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
.final ResponseCookiesSnippet
ResponseCookiesSnippet.and
(CookieDescriptor... additionalDescriptors) Returns a newResponseCookiesSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
.AbstractCookiesSnippet.createModelForDescriptor
(CookieDescriptor descriptor) Returns a model for the givendescriptor
.static RequestCookiesSnippet
CookieDocumentation.relaxedRequestCookies
(Map<String, Object> attributes, CookieDescriptor... descriptors) Returns a newSnippet
that will document the cookies of the API operations's request.static RequestCookiesSnippet
CookieDocumentation.relaxedRequestCookies
(CookieDescriptor... descriptors) Returns a newSnippet
that will document the cookies of the API operation's request.static ResponseCookiesSnippet
CookieDocumentation.relaxedResponseCookies
(Map<String, Object> attributes, CookieDescriptor... descriptors) Returns a newSnippet
that will document the cookies of the API operations's response.static ResponseCookiesSnippet
CookieDocumentation.relaxedResponseCookies
(CookieDescriptor... descriptors) Returns a newSnippet
that will document the cookies of the API operation's response.static RequestCookiesSnippet
CookieDocumentation.requestCookies
(Map<String, Object> attributes, CookieDescriptor... descriptors) Returns a newSnippet
that will document the cookies of the API operations's request.static RequestCookiesSnippet
CookieDocumentation.requestCookies
(CookieDescriptor... descriptors) Returns a newSnippet
that will document the cookies of the API operation's request.static ResponseCookiesSnippet
CookieDocumentation.responseCookies
(Map<String, Object> attributes, CookieDescriptor... descriptors) Returns a newSnippet
that will document the cookies of the API operations's response.static ResponseCookiesSnippet
CookieDocumentation.responseCookies
(CookieDescriptor... descriptors) Returns a newSnippet
that will document the cookies of the API operation's response.Modifier and TypeMethodDescriptionfinal RequestCookiesSnippet
RequestCookiesSnippet.and
(List<CookieDescriptor> additionalDescriptors) Returns a newRequestCookiesSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
.final ResponseCookiesSnippet
ResponseCookiesSnippet.and
(List<CookieDescriptor> additionalDescriptors) Returns a newResponseCookiesSnippet
configured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors
.static RequestCookiesSnippet
CookieDocumentation.relaxedRequestCookies
(List<CookieDescriptor> descriptors) Returns a newSnippet
that will document the cookies of the API operation's request.static RequestCookiesSnippet
CookieDocumentation.relaxedRequestCookies
(Map<String, Object> attributes, List<CookieDescriptor> descriptors) Returns a newSnippet
that will document the cookies of the API operations's request.static ResponseCookiesSnippet
CookieDocumentation.relaxedResponseCookies
(List<CookieDescriptor> descriptors) Returns a newSnippet
that will document the cookies of the API operation's response.static ResponseCookiesSnippet
CookieDocumentation.relaxedResponseCookies
(Map<String, Object> attributes, List<CookieDescriptor> descriptors) Returns a newSnippet
that will document the cookies of the API operations's response.static RequestCookiesSnippet
CookieDocumentation.requestCookies
(List<CookieDescriptor> descriptors) Returns a newSnippet
that will document the cookies of the API operation's request.static RequestCookiesSnippet
CookieDocumentation.requestCookies
(Map<String, Object> attributes, List<CookieDescriptor> descriptors) Returns a newSnippet
that will document the cookies of the API operations's request.static ResponseCookiesSnippet
CookieDocumentation.responseCookies
(List<CookieDescriptor> descriptors) Returns a newSnippet
that will document the cookies of the API operation's response.static ResponseCookiesSnippet
CookieDocumentation.responseCookies
(Map<String, Object> attributes, List<CookieDescriptor> descriptors) Returns a newSnippet
that will document the cookies of the API operations's response.ModifierConstructorDescriptionprotected
AbstractCookiesSnippet
(String type, List<CookieDescriptor> descriptors, Map<String, Object> attributes, boolean ignoreUndocumentedCookies) Creates a newAbstractCookiesSnippet
that will produce a snippet named<type>-cookies
.protected
RequestCookiesSnippet
(List<CookieDescriptor> descriptors) Creates a newRequestCookiesSnippet
that will document the cookies in the request using the givendescriptors
.protected
RequestCookiesSnippet
(List<CookieDescriptor> descriptors, boolean ignoreUndocumentedCookies) Creates a newRequestCookiesSnippet
that will document the cookies in the request using the givendescriptors
.protected
RequestCookiesSnippet
(List<CookieDescriptor> descriptors, Map<String, Object> attributes) Creates a newRequestCookiesSnippet
that will document the cookies in the request using the givendescriptors
.protected
RequestCookiesSnippet
(List<CookieDescriptor> descriptors, Map<String, Object> attributes, boolean ignoreUndocumentedCookies) Creates a newRequestCookiesSnippet
that will document the cookies in the request using the givendescriptors
.protected
ResponseCookiesSnippet
(List<CookieDescriptor> descriptors) Creates a newResponseCookiesSnippet
that will document the cookies in the response using the givendescriptors
.protected
ResponseCookiesSnippet
(List<CookieDescriptor> descriptors, boolean ignoreUndocumentedCookies) Creates a newResponseCookiesSnippet
that will document the cookies in the response using the givendescriptors
.protected
ResponseCookiesSnippet
(List<CookieDescriptor> descriptors, Map<String, Object> attributes) Creates a newResponseCookiesSnippet
that will document the cookies in the response using the givendescriptors
.protected
ResponseCookiesSnippet
(List<CookieDescriptor> descriptors, Map<String, Object> attributes, boolean ignoreUndocumentedCookies) Creates a newResponseCookiesSnippet
that will document the cookies in the response using the givendescriptors
.