Uses of Interface
org.springframework.restdocs.operation.preprocess.OperationPreprocessor
Packages that use OperationPreprocessor
Package
Description
Classes for configuring Spring REST Docs.
Support for preprocessing an operation prior to it being documented.
-
Uses of OperationPreprocessor in org.springframework.restdocs.config
Methods in org.springframework.restdocs.config with parameters of type OperationPreprocessorModifier and TypeMethodDescriptionOperationPreprocessorsConfigurer.withRequestDefaults(OperationPreprocessor... preprocessors) Configures the default operation request preprocessors.OperationPreprocessorsConfigurer.withResponseDefaults(OperationPreprocessor... preprocessors) Configures the default operation response preprocessors. -
Uses of OperationPreprocessor in org.springframework.restdocs.operation.preprocess
Classes in org.springframework.restdocs.operation.preprocess that implement OperationPreprocessorModifier and TypeClassDescriptionclassAnOperationPreprocessorthat applies aContentModifierto the content of the request or response.classAnOperationPreprocessorthat modifies a request or response by adding, setting, or removing headers.classAn implementation ofOperationPreprocessorthat returns the request and response as-is.classAnOperationPreprocessorthat modifies URIs in the request and in the response by changing one or more of their host, scheme, and port.Methods in org.springframework.restdocs.operation.preprocess that return OperationPreprocessorModifier and TypeMethodDescriptionstatic OperationPreprocessorPreprocessors.maskLinks()Returns anOperationPreprocessorthat will mask the href of hypermedia links in the request or response.static OperationPreprocessorReturns anOperationPreprocessorthat will mask the href of hypermedia links in the request or response.static OperationPreprocessorPreprocessors.prettyPrint()Returns anOperationPreprocessorthat will pretty print the content of the request or response.static OperationPreprocessorPreprocessors.replacePattern(Pattern pattern, String replacement) Returns anOperationPreprocessorthat will modify the content of the request or response by replacing occurrences of the givenpatternwith the givenreplacement.Methods in org.springframework.restdocs.operation.preprocess with parameters of type OperationPreprocessorModifier and TypeMethodDescriptionstatic OperationRequestPreprocessorPreprocessors.preprocessRequest(OperationPreprocessor... preprocessors) Returns anOperationRequestPreprocessorthat will preprocess the request by applying the givenpreprocessorsto it.Preprocessors.preprocessResponse(OperationPreprocessor... preprocessors) Returns anOperationResponsePreprocessorthat will preprocess the response by applying the givenpreprocessorsto it.