Class OperationPreprocessorsConfigurer<PARENT,TYPE>
java.lang.Object
org.springframework.restdocs.config.AbstractConfigurer
org.springframework.restdocs.config.AbstractNestedConfigurer<PARENT>
org.springframework.restdocs.config.OperationPreprocessorsConfigurer<PARENT,TYPE>
- Type Parameters:
PARENT
- the type of the configurer's parentTYPE
- the concrete type of the configurer to be returned from chained methods
- Direct Known Subclasses:
MockMvcOperationPreprocessorsConfigurer
,RestAssuredOperationPreprocessorsConfigurer
,WebTestClientOperationPreprocessorsConfigurer
public abstract class OperationPreprocessorsConfigurer<PARENT,TYPE>
extends AbstractNestedConfigurer<PARENT>
A configurer that can be used to configure the default operation preprocessors.
- Since:
- 2.0.0
- Author:
- Filip Hrisafov, Andy Wilkinson
-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates a newOperationPreprocessorConfigurer
with the givenparent
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(Map<String, Object> configuration, RestDocumentationContext context) Applies the configurer to the givenconfiguration
.withRequestDefaults
(OperationPreprocessor... preprocessors) Configures the default operation request preprocessors.withResponseDefaults
(OperationPreprocessor... preprocessors) Configures the default operation response preprocessors.Methods inherited from class org.springframework.restdocs.config.AbstractNestedConfigurer
and
-
Constructor Details
-
OperationPreprocessorsConfigurer
Creates a newOperationPreprocessorConfigurer
with the givenparent
.- Parameters:
parent
- the parent
-
-
Method Details
-
apply
Description copied from class:AbstractConfigurer
Applies the configurer to the givenconfiguration
.- Specified by:
apply
in classAbstractConfigurer
- Parameters:
configuration
- the configuration to be configuredcontext
- the current documentation context
-
withRequestDefaults
Configures the default operation request preprocessors.- Parameters:
preprocessors
- the preprocessors- Returns:
this
-
withResponseDefaults
Configures the default operation response preprocessors.- Parameters:
preprocessors
- the preprocessors- Returns:
this
-