Class MockMvcSnippetConfigurer
java.lang.Object
org.springframework.restdocs.config.AbstractConfigurer
org.springframework.restdocs.config.AbstractNestedConfigurer<PARENT>
org.springframework.restdocs.config.SnippetConfigurer<MockMvcRestDocumentationConfigurer,MockMvcSnippetConfigurer>
org.springframework.restdocs.mockmvc.MockMvcSnippetConfigurer
- All Implemented Interfaces:
MockMvcConfigurer
public final class MockMvcSnippetConfigurer
extends org.springframework.restdocs.config.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 org.springframework.restdocs.config.SnippetConfigurer
DEFAULT_SNIPPET_ENCODING, DEFAULT_TEMPLATE_FORMAT
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterConfigurerAdded
(ConfigurableMockMvcBuilder<?> builder) beforeMockMvcCreated
(ConfigurableMockMvcBuilder<?> builder, WebApplicationContext context) Methods inherited from class org.springframework.restdocs.config.SnippetConfigurer
apply, withAdditionalDefaults, withDefaults, withEncoding, withTemplateFormat
Methods inherited from class org.springframework.restdocs.config.AbstractNestedConfigurer
and
-
Method Details
-
afterConfigurerAdded
- Specified by:
afterConfigurerAdded
in interfaceMockMvcConfigurer
-
beforeMockMvcCreated
public RequestPostProcessor beforeMockMvcCreated(ConfigurableMockMvcBuilder<?> builder, WebApplicationContext context) - Specified by:
beforeMockMvcCreated
in interfaceMockMvcConfigurer
-