Class CrtResponseFileResponseTransformer<ResponseT>

  • Type Parameters:
    ResponseT - Pojo response type.
    All Implemented Interfaces:
    AsyncResponseTransformer<ResponseT,​ResponseT>

    public final class CrtResponseFileResponseTransformer<ResponseT>
    extends Object
    implements AsyncResponseTransformer<ResponseT,​ResponseT>
    When the CRT Response File option is used in a request, the body is streamed directly to the file. The S3CrtResponseHandlerAdapter in this case will never receive a response body but will call onStream when the request is complete with a publisher that will complete immediately. This transformer is effectively a no-op transformer that waits for the stream to complete and then completes the future with the response.