Class RestTestClientSnippetConfigurer
java.lang.Object
org.springframework.restdocs.config.AbstractConfigurer
org.springframework.restdocs.config.AbstractNestedConfigurer<RestTestClientRestDocumentationConfigurer>
org.springframework.restdocs.config.SnippetConfigurer<RestTestClientRestDocumentationConfigurer, RestTestClientSnippetConfigurer>
org.springframework.restdocs.resttestclient.RestTestClientSnippetConfigurer
- All Implemented Interfaces:
ClientHttpRequestInterceptor
public class RestTestClientSnippetConfigurer
extends SnippetConfigurer<RestTestClientRestDocumentationConfigurer, RestTestClientSnippetConfigurer>
implements ClientHttpRequestInterceptor
A
SnippetConfigurer for RestTestClient that can be used to configure
the generated documentation snippets.- Since:
- 4.1.0
- Author:
- Andy Wilkinson
-
Field Summary
Fields inherited from class SnippetConfigurer
DEFAULT_SNIPPET_ENCODING, DEFAULT_TEMPLATE_FORMAT -
Method Summary
Modifier and TypeMethodDescriptionintercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) Methods inherited from class SnippetConfigurer
apply, withAdditionalDefaults, withDefaults, withEncoding, withTemplateFormatMethods inherited from class AbstractNestedConfigurer
andMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClientHttpRequestInterceptor
andThen, apply
-
Method Details
-
intercept
public ClientHttpResponse intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) throws IOException - Specified by:
interceptin interfaceClientHttpRequestInterceptor- Throws:
IOException
-