Uses of Class
org.springframework.restdocs.headers.HeaderDescriptor
Packages that use HeaderDescriptor
Package
Description
Documenting the headers of a RESTful API's requests and responses.
-
Uses of HeaderDescriptor in org.springframework.restdocs.headers
Methods in org.springframework.restdocs.headers that return HeaderDescriptorModifier and TypeMethodDescriptionstatic HeaderDescriptorHeaderDocumentation.headerWithName(String name) Creates aHeaderDescriptorthat describes a header with the givenname.final HeaderDescriptorHeaderDescriptor.optional()Marks the header as optional.Methods in org.springframework.restdocs.headers that return types with arguments of type HeaderDescriptorModifier and TypeMethodDescriptionprotected List<HeaderDescriptor>AbstractHeadersSnippet.findMissingHeaders(Operation operation) Finds the headers that are missing from the operation.protected final List<HeaderDescriptor>AbstractHeadersSnippet.getHeaderDescriptors()Returns the list ofHeaderDescriptorsthat will be used to generate the documentation.Methods in org.springframework.restdocs.headers with parameters of type HeaderDescriptorModifier and TypeMethodDescriptionfinal RequestHeadersSnippetRequestHeadersSnippet.and(HeaderDescriptor... additionalDescriptors) Returns a newRequestHeadersSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors.final ResponseHeadersSnippetResponseHeadersSnippet.and(HeaderDescriptor... additionalDescriptors) Returns a newResponseHeadersSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors.AbstractHeadersSnippet.createModelForDescriptor(HeaderDescriptor descriptor) Returns a model for the givendescriptor.static RequestHeadersSnippetHeaderDocumentation.requestHeaders(Map<String, Object> attributes, HeaderDescriptor... descriptors) Returns a newSnippetthat will document the headers of the API operations's request.static RequestHeadersSnippetHeaderDocumentation.requestHeaders(HeaderDescriptor... descriptors) Returns a newSnippetthat will document the headers of the API operation's request.static ResponseHeadersSnippetHeaderDocumentation.responseHeaders(Map<String, Object> attributes, HeaderDescriptor... descriptors) Returns a newSnippetthat will document the headers of the API operations's response.static ResponseHeadersSnippetHeaderDocumentation.responseHeaders(HeaderDescriptor... descriptors) Returns a newSnippetthat will document the headers of the API operation's response.Method parameters in org.springframework.restdocs.headers with type arguments of type HeaderDescriptorModifier and TypeMethodDescriptionfinal RequestHeadersSnippetRequestHeadersSnippet.and(List<HeaderDescriptor> additionalDescriptors) Returns a newRequestHeadersSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors.final ResponseHeadersSnippetResponseHeadersSnippet.and(List<HeaderDescriptor> additionalDescriptors) Returns a newResponseHeadersSnippetconfigured with this snippet's attributes and its descriptors combined with the givenadditionalDescriptors.static RequestHeadersSnippetHeaderDocumentation.requestHeaders(List<HeaderDescriptor> descriptors) Returns a newSnippetthat will document the headers of the API operation's request.static RequestHeadersSnippetHeaderDocumentation.requestHeaders(Map<String, Object> attributes, List<HeaderDescriptor> descriptors) Returns a newSnippetthat will document the headers of the API operations's request.static ResponseHeadersSnippetHeaderDocumentation.responseHeaders(List<HeaderDescriptor> descriptors) Returns a newSnippetthat will document the headers of the API operation's response.static ResponseHeadersSnippetHeaderDocumentation.responseHeaders(Map<String, Object> attributes, List<HeaderDescriptor> descriptors) Returns a newSnippetthat will document the headers of the API operations's response.Constructor parameters in org.springframework.restdocs.headers with type arguments of type HeaderDescriptorModifierConstructorDescriptionprotectedAbstractHeadersSnippet(String type, List<HeaderDescriptor> descriptors, Map<String, Object> attributes) Creates a newAbstractHeadersSnippetthat will produce a snippet named<type>-headers.protectedRequestHeadersSnippet(List<HeaderDescriptor> descriptors) Creates a newRequestHeadersSnippetthat will document the headers in the request using the givendescriptors.protectedRequestHeadersSnippet(List<HeaderDescriptor> descriptors, Map<String, Object> attributes) Creates a newRequestHeadersSnippetthat will document the headers in the request using the givendescriptors.protectedResponseHeadersSnippet(List<HeaderDescriptor> descriptors) Creates a newResponseHeadersSnippetthat will document the headers in the response using the givendescriptors.protectedResponseHeadersSnippet(List<HeaderDescriptor> descriptors, Map<String, Object> attributes) Creates a newResponseHeadersSnippetthat will document the headers in the response using the givendescriptors.