T - public class StdResponseHandler<T> extends Object implements ResponseCallback<T>
| Constructor and Description |
|---|
StdResponseHandler() |
| Modifier and Type | Method and Description |
|---|---|
static DbAccessException |
createDbAccessException(HttpResponse hr)
Creates an DbAccessException which specific type is determined by the response code in the http response.
|
T |
error(HttpResponse hr) |
T |
success(HttpResponse hr)
Called when http response code is < 300
|
public static DbAccessException createDbAccessException(HttpResponse hr)
hr - public T error(HttpResponse hr)
error in interface ResponseCallback<T>public T success(HttpResponse hr) throws Exception
ResponseCallbacksuccess in interface ResponseCallback<T>ExceptionCopyright © 2013. All Rights Reserved.