public abstract class AbstractBackendResponseHandler<R> extends Object
Modifier and Type | Field and Description |
---|---|
protected LifeCycleHandler |
lifeCycleHandler |
protected ForestRequest |
request |
Constructor and Description |
---|
AbstractBackendResponseHandler(ForestRequest request,
LifeCycleHandler lifeCycleHandler) |
Modifier and Type | Method and Description |
---|---|
void |
handleError(ForestResponse response) |
void |
handleError(ForestResponse response,
Throwable ex) |
abstract void |
handleFuture(Future<R> httpResponseFuture,
ForestResponseFactory forestResponseFactory) |
Object |
handleSuccess(ForestResponse response) |
Object |
handleSync(ForestResponse response,
int statusCode,
String msg) |
protected final ForestRequest request
protected final LifeCycleHandler lifeCycleHandler
public AbstractBackendResponseHandler(ForestRequest request, LifeCycleHandler lifeCycleHandler)
public Object handleSync(ForestResponse response, int statusCode, String msg)
public Object handleSuccess(ForestResponse response)
public void handleError(ForestResponse response)
public void handleError(ForestResponse response, Throwable ex)
public abstract void handleFuture(Future<R> httpResponseFuture, ForestResponseFactory forestResponseFactory)
Copyright © 2020. All rights reserved.