CChannel | Tool class for easy channel manipulation. This class is for internal usage |
CConst | Tool class containing internal default values and options. This class is for internal usage |
CErrHandler | Class for handling thrown exceptions during an asynchronous execution of this library |
CJson | Tool class to simplify operations on JSON objects and strings. This is for internal usage |
▼CListener | Basic interface for receiving generic asyncronous CloudPlugs notifications and events |
CListListener | This class is a list of Listeners. It's a convenient way to handle more listeners using just one |
▼CMetaListener | Convenient class encapsulates a Listener and acts just like the encapsulated one, but it also invokes the Listener#onErr(Throwable) method if the encapsulated listener throws an exception |
▼CMultiListener | Convenient class combines the behaviors and the advantages of ListListener and MetaListener: this is an instance of MetaListener encapsulates a ListListener |
▼CRestBaseManager | Base class for handling HTTP requests. This class is not intended for direct usage, the developer should use a subclass of this one. An instance of this class will also emit events about the internal spooler behavoir, so that any attached com.cloudplugs.util.Listener to a RestBaseManager will be notified about what's happening in the execution flow. See also RestManager |
CRestManager | Class for handling remote requests with CloudPlugs server |
▼CRestClient | This is the main class for handling the connection to the CloudPlugs server on the Java platform. An instance of RestClient manages the HTTP requests flow by creating a thread spooler for each server to connect. Such spooler will send enqueued HTTP requests one by one following the FIFO order. An instance of this class will also emit events about the internal spooler behavior, so that any attached com.cloudplugs.util.Listener to a RestClient will be notified about what's happening in the execution flow. The primary usage of this class is to invoke the method getManager(Opts) for obtaining an instance of RestManager able to enqueue asynchronous HTTP requests (executed in an underlying thread spooler) using the preferred options Opts. Android developers should avoid a direct use of this class, they should use com.cloudplugs.rest.android.RestClient (unavailable on Java platform), because it supports reliable background execution of HTTP requests through a dedicated Android service and CPU wake locks. By using a direct instance of this class, an Android app could lose the ability to send HTTP requests and to receive the responses when the app is not in foreground |
CRestClient | A com.cloudplugs.rest.RestClient extension for Android. It implements an automatic and transparent mechanism to create an Android service for reliable background execution. The underlying spooler (if any) will automatically be paused and resumed respectively when the Internet connectivity became unavailable and available. See com.cloudplugs.rest.RestClient for further details about the RestClient usage |
▼CSpooler | Generic job spooler implementation in a dedicated thread. This class is for internal usage |
▼CRefSpooler | A extension of Spooler with reference-counted start and stop. This class is for internal usage |
▼CRestSpooler | A thread spooler for asynchronous sending of HTTP requests. This class is for internal usage |
CRestSpooler | A com.cloudplugs.rest.RestSpooler extension to handle Android wake locks for reliable execution when the application is not in foreground. This class is for internal usage |
COpts | An instance of this class contains all the options for connecting and making requests to the server, including the authentication credentials required for most HTTP requests. This class mainly offers getter and setter methods to manage all the options |
CPlugId | Tool class for easy PlugID validation. This class is for internal usage |
CRequest | An instance of this class is a HTTP request to send or already sent to the server |
CResponse | An instance of this class is a HTTP response received by the server or a generic error response |
▼CRestCallback | An instance of this interface will asynchronously receive the results of a HTTP request execution enqueued using one of the methods in RestManager |
▼CRestCallback.Meta | Helper class for easy dealing between threads when using RestCallback |
CRestHandlerCallback | Helper class for easy management of com.cloudplugs.rest.RestCallback with android.os.Handler. It is a wrapper of a custom com.cloudplugs.rest.RestCallback such that it will be executed inside an android.os.Handler |
▼CRunnable | |
CRestJob | An instance of this class is an enqueued request execution obtained by RestBaseManager#getJobOf(int) |
CSpooler | Generic job spooler implementation in a dedicated thread. This class is for internal usage |
▼CRuntimeException | |
▼CPlugException | A generic exception of CloudPlugs library |
CRestException | An exception thrown by REST CloudPlugs API |
CSSL | Tool class for easy manipulation of CA certificates over the SSL network. The developer should avoid a direct usage of this class when connecting to an official CloudPlugs server |
CStr | Tool class to simplify some String operations. This class is for internal usage |
CTimestamp | Tool class for easy Timestamp validation and handling. This class is for internal usage |
CValidate | Tool class for validating parameters for making remote requests. Every method throws an IllegalArgumentException if the given argument is not valid. This class is for internal usage |
▼CBroadcastReceiver | |
CBaseReceiver | Helper class of BaseService to allow asynchronous release of Android wake locks. This class is for internal usage |
▼CFuture | |
CRestJob | An instance of this class is an enqueued request execution obtained by RestBaseManager#getJobOf(int) |
▼CLinkedList | |
CListListener | This class is a list of Listeners. It's a convenient way to handle more listeners using just one |
▼CService | |
▼CBaseService | Base service class to handle background execution with an automatic mechanism of Android CPU wake locks. This class is for internal usage |
CRestService | An Android service for reliable sending of HTTP requests. This class is for internal usage. Do not create nor destroy this service directly, it is automatically managed by RestClient. You need to declare this exact service in your AndroidManifest.xml to have it works, so add the following line inside the <application> tag: |