public class XmlObjectResponseHandler extends Object implements ResponseHandler
Constructor and Description |
---|
XmlObjectResponseHandler() |
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.
|
public void onSuccess(InputStream response, int httpStatusCode)
ResponseHandler
onSuccess
in interface ResponseHandler
response
- response's content as stream.httpStatusCode
- the HTTP status code.public void onFailure(String reason)
ResponseHandler
IOException
TimeoutException
, etc.) should already have been handled and logged
appropriately. Use this method to trigger higher-level error messaging.onFailure
in interface ResponseHandler
reason
- a higher-level error messageCopyright © 2012–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.