Class RestTestClientRestDocumentationConfigurer
java.lang.Object
org.springframework.restdocs.config.RestDocumentationConfigurer<RestTestClientSnippetConfigurer, RestTestClientOperationPreprocessorsConfigurer, RestTestClientRestDocumentationConfigurer>
org.springframework.restdocs.resttestclient.RestTestClientRestDocumentationConfigurer
- All Implemented Interfaces:
ClientHttpRequestInterceptor
public class RestTestClientRestDocumentationConfigurer
extends RestDocumentationConfigurer<RestTestClientSnippetConfigurer, RestTestClientOperationPreprocessorsConfigurer, RestTestClientRestDocumentationConfigurer>
implements ClientHttpRequestInterceptor
A
RestTestClient-specific RestDocumentationConfigurer.- Since:
- 4.1.0
- Author:
- Andy Wilkinson
-
Method Summary
Modifier and TypeMethodDescriptionintercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) Returns anOperationPreprocessorsConfigurerthat can be used to configure the operation request and response preprocessors that will be used.snippets()Returns aSnippetConfigurerthat can be used to configure the snippets that will be generated.Methods inherited from class RestDocumentationConfigurer
apply, templateEngine, writerResolverMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClientHttpRequestInterceptor
andThen, apply
-
Method Details
-
snippets
Description copied from class:RestDocumentationConfigurerReturns aSnippetConfigurerthat can be used to configure the snippets that will be generated.- Specified by:
snippetsin classRestDocumentationConfigurer<RestTestClientSnippetConfigurer, RestTestClientOperationPreprocessorsConfigurer, RestTestClientRestDocumentationConfigurer>- Returns:
- the snippet configurer
-
operationPreprocessors
Description copied from class:RestDocumentationConfigurerReturns anOperationPreprocessorsConfigurerthat can be used to configure the operation request and response preprocessors that will be used.- Specified by:
operationPreprocessorsin classRestDocumentationConfigurer<RestTestClientSnippetConfigurer, RestTestClientOperationPreprocessorsConfigurer, RestTestClientRestDocumentationConfigurer>- Returns:
- the operation preprocessors configurer
-
intercept
public ClientHttpResponse intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) throws IOException - Specified by:
interceptin interfaceClientHttpRequestInterceptor- Throws:
IOException
-