public class HttpResponseChannel extends Object implements rx.Observer<PreResponse>
Constructor and Description |
---|
HttpResponseChannel(javax.ws.rs.container.AsyncResponse asyncResponse,
ApiRequest apiRequest,
HttpResponseMaker httpResponseMaker)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
onCompleted() |
void |
onError(Throwable responseException)
Method to handle an error case from its observables.
|
void |
onNext(PreResponse preResponse) |
public HttpResponseChannel(javax.ws.rs.container.AsyncResponse asyncResponse, ApiRequest apiRequest, HttpResponseMaker httpResponseMaker)
asyncResponse
- An async response that we can use to respond asynchronouslyapiRequest
- Api request object with all the associated info with ithttpResponseMaker
- Helper class instance to prepare the response objectpublic void onCompleted()
onCompleted
in interface rx.Observer<PreResponse>
public void onError(Throwable responseException)
onError
in interface rx.Observer<PreResponse>
responseException
- An object contains error response attributes wrapped along with an Exception objectpublic void onNext(PreResponse preResponse)
onNext
in interface rx.Observer<PreResponse>
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.