Android Client SDK
com.verivo.akula.http.handler.AKHttpResponseHandler Interface Reference

The AKHttpResponseHandler interface defines the callback methods called after a response from the server or after an error occurs locally. More...

Inheritance diagram for com.verivo.akula.http.handler.AKHttpResponseHandler:
Inheritance graph

Public Member Functions

void handleDone ()
 Handler classes implement this method to be handle when all response processing is complete. More...
 
void handleFailure (Throwable e)
 Handler classes implement this method to handle a local exception from a request. More...
 
void handleResponse (HttpResponse response)
 Handler classes implement this method to handle a returned HttpResponse from a request. More...
 

Detailed Description

The AKHttpResponseHandler interface defines the callback methods called after a response from the server or after an error occurs locally.

Handler classes must implement this interface. You can then pPass a handler class that implements this interface to the asynchronous request methods of AKHttpAgent.

See Also
AKHttpAgent

Member Function Documentation

void com.verivo.akula.http.handler.AKHttpResponseHandler.handleDone ( )

Handler classes implement this method to be handle when all response processing is complete.

This method should be called after all other callback methods have completed.

Version
1.0

Implemented in com.verivo.akula.http.handler.AKTextHttpResponseHandler, and com.verivo.akula.http.handler.AKRawHttpResponseHandler.

void com.verivo.akula.http.handler.AKHttpResponseHandler.handleFailure ( Throwable  e)

Handler classes implement this method to handle a local exception from a request.

Version
1.0

Implemented in com.verivo.akula.http.handler.AKTextHttpResponseHandler, and com.verivo.akula.http.handler.AKRawHttpResponseHandler.

void com.verivo.akula.http.handler.AKHttpResponseHandler.handleResponse ( HttpResponse  response)

Handler classes implement this method to handle a returned HttpResponse from a request.

Parameters
response
  • the unparsed response from the server.
Version
1.0

Implemented in com.verivo.akula.http.handler.AKTextHttpResponseHandler, and com.verivo.akula.http.handler.AKRawHttpResponseHandler.