Class OperationPreprocessorAdapter
java.lang.Object
org.springframework.restdocs.operation.preprocess.OperationPreprocessorAdapter
- All Implemented Interfaces:
OperationPreprocessor
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
-
Method Summary
Modifier and TypeMethodDescriptionpreprocess
(OperationRequest request) Returns the givenrequest
as-is.preprocess
(OperationResponse response) Returns the givenresponse
as-is.
-
Constructor Details
-
OperationPreprocessorAdapter
public OperationPreprocessorAdapter()
-
-
Method Details
-
preprocess
Returns the givenrequest
as-is.- Specified by:
preprocess
in interfaceOperationPreprocessor
- Parameters:
request
- the request- Returns:
- the unmodified request
-
preprocess
Returns the givenresponse
as-is.- Specified by:
preprocess
in interfaceOperationPreprocessor
- Parameters:
response
- the response- Returns:
- the unmodified response
-