Interface BodyTransformer

    • Method Detail

      • transformRequest

        Object transformRequest​(MediaType type,
                                ValidatableRequest request)
        Transforms the body of a request into a format that can be validated by the RequestValidator.
        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 the ResponseValidator.
        Parameters:
        type - the media type of the body.
        response - the response with the body to transform.
        Returns:
        the transformed body.