Class RestEventStreamAsyncResponseTransformer<ResponseT extends SdkResponse,​EventT>

  • Type Parameters:
    ResponseT - Initial response type of event stream operation.
    EventT - Base type of event stream message frames.
    All Implemented Interfaces:
    AsyncResponseTransformer<ResponseT,​Void>

    public class RestEventStreamAsyncResponseTransformer<ResponseT extends SdkResponse,​EventT>
    extends Object
    implements AsyncResponseTransformer<ResponseT,​Void>
    Adapter transformer meant for eventstream responses from REST services (REST-XML, REST-JSON). These protocols don't have an 'initial-response' event, unlike AWS-JSON. In these protocols "initial response" is treated as the HTTP response itself. When this transformer's onResponse(SdkResponse) method is invoked, it also invokes it on the eventstream response handler, which the normal EventStreamAsyncResponseTransformer does not do.