public interface ResponseHandler
Modifier and Type | Method and Description |
---|---|
void |
onFailure(String reason)
Called when no response could be received.
|
void |
onSuccess(InputStream response,
int httpStatusCode)
Called when a response was received successfully.
|
void onSuccess(InputStream response, int httpStatusCode)
response
- response's content as stream.httpStatusCode
- the HTTP status code.void onFailure(String reason)
IOException
TimeoutException
, etc.) should already have been handled and logged
appropriately. Use this method to trigger higher-level error messaging.reason
- a higher-level error messageCopyright © 2012–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.