public class SimpleHttpRequestCallback extends AbstractHttpRequestCallback<org.apache.http.HttpResponse>
HttpResponse
on success
and throws runtime exceptions on errors.Constructor and Description |
---|
SimpleHttpRequestCallback() |
Modifier and Type | Method and Description |
---|---|
static HttpRequestCallback<org.apache.http.HttpResponse> |
getInstance()
Get a singleton instance of this class
|
org.apache.http.HttpResponse |
onCallSuccess(org.apache.http.HttpResponse response)
Returns the response without any modifications
|
onCallException
public static HttpRequestCallback<org.apache.http.HttpResponse> getInstance()
public org.apache.http.HttpResponse onCallSuccess(org.apache.http.HttpResponse response)
Copyright © 2005–2018 Alfresco Software. All rights reserved.