Uses of Class
org.springframework.restdocs.cookies.CookieDescriptor
Packages that use CookieDescriptor
Package
Description
Documenting the cookies of a RESTful API's requests and responses.
-
Uses of CookieDescriptor in org.springframework.restdocs.cookies
Subclasses with type arguments of type CookieDescriptor in org.springframework.restdocs.cookiesModifier and TypeClassDescriptionclassA description of a cookie found in a request or response.Methods in org.springframework.restdocs.cookies that return CookieDescriptorModifier and TypeMethodDescriptionstatic CookieDescriptorCookieDocumentation.cookieWithName(String name) Creates aCookieDescriptorthat describes a cookie with the givenname.final CookieDescriptorCookieDescriptor.optional()Marks the cookie as optional.Methods in org.springframework.restdocs.cookies that return types with arguments of type CookieDescriptorModifier and TypeMethodDescriptionprotected final Map<String, CookieDescriptor> AbstractCookiesSnippet.getCookieDescriptors()Returns the list ofCookieDescriptorsthat will be used to generate the documentation.Methods in org.springframework.restdocs.cookies with parameters of type CookieDescriptorModifier and TypeMethodDescriptionfinal RequestCookiesSnippetRequestCookiesSnippet.and(CookieDescriptor... additionalDescriptors) Returns a newRequestCookiesSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors.final ResponseCookiesSnippetResponseCookiesSnippet.and(CookieDescriptor... additionalDescriptors) Returns a newResponseCookiesSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors.AbstractCookiesSnippet.createModelForDescriptor(CookieDescriptor descriptor) Returns a model for the givendescriptor.static RequestCookiesSnippetCookieDocumentation.relaxedRequestCookies(Map<String, Object> attributes, CookieDescriptor... descriptors) Returns a newSnippetthat will document the cookies of the API operations's request.static RequestCookiesSnippetCookieDocumentation.relaxedRequestCookies(CookieDescriptor... descriptors) Returns a newSnippetthat will document the cookies of the API operation's request.static ResponseCookiesSnippetCookieDocumentation.relaxedResponseCookies(Map<String, Object> attributes, CookieDescriptor... descriptors) Returns a newSnippetthat will document the cookies of the API operations's response.static ResponseCookiesSnippetCookieDocumentation.relaxedResponseCookies(CookieDescriptor... descriptors) Returns a newSnippetthat will document the cookies of the API operation's response.static RequestCookiesSnippetCookieDocumentation.requestCookies(Map<String, Object> attributes, CookieDescriptor... descriptors) Returns a newSnippetthat will document the cookies of the API operations's request.static RequestCookiesSnippetCookieDocumentation.requestCookies(CookieDescriptor... descriptors) Returns a newSnippetthat will document the cookies of the API operation's request.static ResponseCookiesSnippetCookieDocumentation.responseCookies(Map<String, Object> attributes, CookieDescriptor... descriptors) Returns a newSnippetthat will document the cookies of the API operations's response.static ResponseCookiesSnippetCookieDocumentation.responseCookies(CookieDescriptor... descriptors) Returns a newSnippetthat will document the cookies of the API operation's response.Method parameters in org.springframework.restdocs.cookies with type arguments of type CookieDescriptorModifier and TypeMethodDescriptionfinal RequestCookiesSnippetRequestCookiesSnippet.and(List<CookieDescriptor> additionalDescriptors) Returns a newRequestCookiesSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors.final ResponseCookiesSnippetResponseCookiesSnippet.and(List<CookieDescriptor> additionalDescriptors) Returns a newResponseCookiesSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors.static RequestCookiesSnippetCookieDocumentation.relaxedRequestCookies(List<CookieDescriptor> descriptors) Returns a newSnippetthat will document the cookies of the API operation's request.static RequestCookiesSnippetCookieDocumentation.relaxedRequestCookies(Map<String, Object> attributes, List<CookieDescriptor> descriptors) Returns a newSnippetthat will document the cookies of the API operations's request.static ResponseCookiesSnippetCookieDocumentation.relaxedResponseCookies(List<CookieDescriptor> descriptors) Returns a newSnippetthat will document the cookies of the API operation's response.static ResponseCookiesSnippetCookieDocumentation.relaxedResponseCookies(Map<String, Object> attributes, List<CookieDescriptor> descriptors) Returns a newSnippetthat will document the cookies of the API operations's response.static RequestCookiesSnippetCookieDocumentation.requestCookies(List<CookieDescriptor> descriptors) Returns a newSnippetthat will document the cookies of the API operation's request.static RequestCookiesSnippetCookieDocumentation.requestCookies(Map<String, Object> attributes, List<CookieDescriptor> descriptors) Returns a newSnippetthat will document the cookies of the API operations's request.static ResponseCookiesSnippetCookieDocumentation.responseCookies(List<CookieDescriptor> descriptors) Returns a newSnippetthat will document the cookies of the API operation's response.static ResponseCookiesSnippetCookieDocumentation.responseCookies(Map<String, Object> attributes, List<CookieDescriptor> descriptors) Returns a newSnippetthat will document the cookies of the API operations's response.Constructor parameters in org.springframework.restdocs.cookies with type arguments of type CookieDescriptorModifierConstructorDescriptionprotectedAbstractCookiesSnippet(String type, List<CookieDescriptor> descriptors, @Nullable Map<String, Object> attributes, boolean ignoreUndocumentedCookies) Creates a newAbstractCookiesSnippetthat will produce a snippet named<type>-cookies.protectedRequestCookiesSnippet(List<CookieDescriptor> descriptors) Creates a newRequestCookiesSnippetthat will document the cookies in the request using the givendescriptors.protectedRequestCookiesSnippet(List<CookieDescriptor> descriptors, boolean ignoreUndocumentedCookies) Creates a newRequestCookiesSnippetthat will document the cookies in the request using the givendescriptors.protectedRequestCookiesSnippet(List<CookieDescriptor> descriptors, @Nullable Map<String, Object> attributes) Creates a newRequestCookiesSnippetthat will document the cookies in the request using the givendescriptors.protectedRequestCookiesSnippet(List<CookieDescriptor> descriptors, @Nullable Map<String, Object> attributes, boolean ignoreUndocumentedCookies) Creates a newRequestCookiesSnippetthat will document the cookies in the request using the givendescriptors.protectedResponseCookiesSnippet(List<CookieDescriptor> descriptors) Creates a newResponseCookiesSnippetthat will document the cookies in the response using the givendescriptors.protectedResponseCookiesSnippet(List<CookieDescriptor> descriptors, boolean ignoreUndocumentedCookies) Creates a newResponseCookiesSnippetthat will document the cookies in the response using the givendescriptors.protectedResponseCookiesSnippet(List<CookieDescriptor> descriptors, @Nullable Map<String, Object> attributes) Creates a newResponseCookiesSnippetthat will document the cookies in the response using the givendescriptors.protectedResponseCookiesSnippet(List<CookieDescriptor> descriptors, @Nullable Map<String, Object> attributes, boolean ignoreUndocumentedCookies) Creates a newResponseCookiesSnippetthat will document the cookies in the response using the givendescriptors.