HttpResponseType - FeedBuilderResult - public abstract class HttpRequestResponseWorker<HttpResponseType,FeedBuilderResult> extends Object implements HttpResponseReceiver<HttpResponseType>, ResponseWorker<HttpResponseType,FeedBuilderResult>
FeedBuilder that is also a HttpResponseReceiver. So
this class will receive the response for a HttpRequest. Than this
class will inform his HttpFeedBuilderListener about the http resonse
by calling
HttpFeedBuilderListener#onHttpSuccessful(HttpFeedBuilder, HttpResponse, boolean)
or HttpFeedBuilder#onFailure(HttpRequest, Exception). Than its up to
the HttpFeedBuilderListener if he wants to start the real
FeedBuilding process (transform a http respons into a displayable list of
feed items)| Modifier and Type | Field and Description |
|---|---|
protected HttpResponse<HttpResponseType> |
response |
| Constructor and Description |
|---|
HttpRequestResponseWorker() |
| Modifier and Type | Method and Description |
|---|---|
void |
onError(Exception e)
Will be called if an error has been occurred in the build method.
|
void |
onSuccess(HttpResponse<HttpResponseType> res)
Called when the Http request has returned a result
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonFailuredoInBackground, onFinishedprotected HttpResponse<HttpResponseType> response
public void onSuccess(HttpResponse<HttpResponseType> res)
HttpResponseReceiveronSuccess in interface HttpResponseReceiver<HttpResponseType>public void onError(Exception e)
ResponseWorkeronError in interface ResponseWorker<HttpResponseType,FeedBuilderResult>Copyright © 2015 Hannes Dorfmann. All rights reserved.