public class SnippetConfigurer extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SNIPPET_ENCODING
The default encoding for documentation snippets.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterConfigurerAdded(ConfigurableMockMvcBuilder<?> builder) |
PARENT |
and()
Returns the configurer's parent.
|
RequestPostProcessor |
beforeMockMvcCreated(ConfigurableMockMvcBuilder<?> builder,
WebApplicationContext context) |
SnippetConfigurer |
withDefaults(Snippet... defaultSnippets)
Configures the documentation snippets that will be produced by default.
|
SnippetConfigurer |
withEncoding(String encoding)
Configures any documentation snippets to be written using the given
encoding. |
public static final String DEFAULT_SNIPPET_ENCODING
withEncoding(String),
Constant Field Valuespublic SnippetConfigurer withEncoding(String encoding)
encoding. The default is UTF-8.encoding - the encodingthispublic SnippetConfigurer withDefaults(Snippet... defaultSnippets)
defaultSnippets - the default snippetsthispublic PARENT and()
public void afterConfigurerAdded(ConfigurableMockMvcBuilder<?> builder)
afterConfigurerAdded in interface MockMvcConfigurerpublic RequestPostProcessor beforeMockMvcCreated(ConfigurableMockMvcBuilder<?> builder, WebApplicationContext context)
beforeMockMvcCreated in interface MockMvcConfigurer