Class MockMvcSnippetConfigurer
java.lang.Object
org.springframework.restdocs.config.AbstractConfigurer
org.springframework.restdocs.config.AbstractNestedConfigurer<MockMvcRestDocumentationConfigurer>
org.springframework.restdocs.config.SnippetConfigurer<MockMvcRestDocumentationConfigurer, MockMvcSnippetConfigurer>
org.springframework.restdocs.mockmvc.MockMvcSnippetConfigurer
- All Implemented Interfaces:
MockMvcConfigurer
public final class MockMvcSnippetConfigurer
extends SnippetConfigurer<MockMvcRestDocumentationConfigurer, MockMvcSnippetConfigurer>
implements MockMvcConfigurer
A configurer that can be used to configure the generated documentation snippets.
- Since:
- 1.1.0
- Author:
- Andy Wilkinson
-
Field Summary
Fields inherited from class SnippetConfigurer
DEFAULT_SNIPPET_ENCODING, DEFAULT_TEMPLATE_FORMAT -
Method Summary
Modifier and TypeMethodDescriptionvoidafterConfigurerAdded(ConfigurableMockMvcBuilder<?> builder) beforeMockMvcCreated(ConfigurableMockMvcBuilder<?> builder, WebApplicationContext context) Methods inherited from class SnippetConfigurer
apply, withAdditionalDefaults, withDefaults, withEncoding, withTemplateFormatMethods inherited from class AbstractNestedConfigurer
and
-
Method Details
-
afterConfigurerAdded
- Specified by:
afterConfigurerAddedin interfaceMockMvcConfigurer
-
beforeMockMvcCreated
public RequestPostProcessor beforeMockMvcCreated(ConfigurableMockMvcBuilder<?> builder, WebApplicationContext context) - Specified by:
beforeMockMvcCreatedin interfaceMockMvcConfigurer
-