CloudPlugs REST Library  1.0.0
for Java
RestCallback Interface Reference

An instance of this interface will asynchronously receive the results of a HTTP request execution enqueued using one of the methods in RestManager. More...

Inheritance diagram for RestCallback:

Classes

class  Join
 Helper class to aggregate the execution of more RestCallbacks into a single Object.
 
class  Meta
 Helper class for easy dealing between threads when using RestCallback. More...
 

Public Member Functions

void on (Request request, Response response)
 

Detailed Description

An instance of this interface will asynchronously receive the results of a HTTP request execution enqueued using one of the methods in RestManager.

Member Function Documentation

◆ on()

void on ( Request  request,
Response  response 
)

This method will be called after completing a request (enqueued by RestManager). This method is executed in the thread of the underlying spooler processes the enqueued requests.

Parameters
requestthe generated request
responsethe received response from the server

Implemented in RestCallback.Meta.