Class OperationPreprocessorAdapter
java.lang.Object
org.springframework.restdocs.operation.preprocess.OperationPreprocessorAdapter
- All Implemented Interfaces:
OperationPreprocessor
- Direct Known Subclasses:
ParametersModifyingOperationPreprocessor
An implementation of
OperationPreprocessor that returns the request and
response as-is. To be subclassed by preprocessor implementations that only modify the
request or the response.- Since:
- 1.1.0
- Author:
- Andy Wilkinson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpreprocess(OperationRequest request) Returns the givenrequestas-is.preprocess(OperationResponse response) Returns the givenresponseas-is.
-
Constructor Details
-
OperationPreprocessorAdapter
public OperationPreprocessorAdapter()
-
-
Method Details
-
preprocess
Returns the givenrequestas-is.- Specified by:
preprocessin interfaceOperationPreprocessor- Parameters:
request- the request- Returns:
- the unmodified request
-
preprocess
Returns the givenresponseas-is.- Specified by:
preprocessin interfaceOperationPreprocessor- Parameters:
response- the response- Returns:
- the unmodified response
-