Interface BodyTransformer
-
- All Known Implementing Classes:
ApplicationJsonTransformer
,MultipartFormTransformer
public interface BodyTransformer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
transformRequest(MediaType type, ValidatableRequest request)
Transforms the body of a request into a format that can be validated by theRequestValidator
.Object
transformResponse(MediaType type, ValidatableResponse response)
Transforms the body of a response into a format that can be validated by theResponseValidator
.
-
-
-
Method Detail
-
transformRequest
Object transformRequest(MediaType type, ValidatableRequest request)
Transforms the body of a request into a format that can be validated by theRequestValidator
.- Parameters:
type
- the media type of the body.request
- the request with the body to transform.- Returns:
- the transformed body.
-
transformResponse
Object transformResponse(MediaType type, ValidatableResponse response)
Transforms the body of a response into a format that can be validated by theResponseValidator
.- Parameters:
type
- the media type of the body.response
- the response with the body to transform.- Returns:
- the transformed body.
-
-