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, 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
ConstructorsModifierConstructorDescriptionprotectedCreates a newOperationPreprocessorConfigurerwith the givenparent. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(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 AbstractNestedConfigurer
and
-
Constructor Details
-
OperationPreprocessorsConfigurer
Creates a newOperationPreprocessorConfigurerwith the givenparent.- Parameters:
parent- the parent
-
-
Method Details
-
apply
Description copied from class:AbstractConfigurerApplies the configurer to the givenconfiguration.- Specified by:
applyin 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
-