public final class BaseFirebaseRestDatabaseFactory extends java.lang.Object implements FirebaseRestDatabaseFactory
FirebaseRestDatabaseFactory implementation using AsyncHttpClient as the HTTP
transport library. This factory also requires the Firebase access token to be provided
for the creation.| Constructor and Description |
|---|
BaseFirebaseRestDatabaseFactory(com.ning.http.client.AsyncHttpClient asyncHttpClient,
com.google.gson.Gson gson)
Base factory which requires the
AsyncHttpClient and Gson dependencies to be injected. |
| Modifier and Type | Method and Description |
|---|---|
FirebaseRestDatabase |
create(java.lang.String databaseUrl,
java.lang.String firebaseAccessToken)
Factory method to create a new instance of a
FirebaseRestDatabase for the given URL, using the
provided access token as the auth query parameter. |
public BaseFirebaseRestDatabaseFactory(com.ning.http.client.AsyncHttpClient asyncHttpClient,
com.google.gson.Gson gson)
AsyncHttpClient and Gson dependencies to be injected.asyncHttpClient - AsyncHttpClient instance, which will be used for the HTTP requests.gson - Gson instance used for deserialization of all reference responses.public FirebaseRestDatabase create(java.lang.String databaseUrl, java.lang.String firebaseAccessToken)
FirebaseRestDatabaseFactoryFirebaseRestDatabase for the given URL, using the
provided access token as the auth query parameter.create in interface FirebaseRestDatabaseFactorydatabaseUrl - The URL root URL to the Firebase database, i.e. https://myinstance.firebaseio.comfirebaseAccessToken - The access token to be used for all requests to this database. Value can be nullFirebaseRestDatabase representing the database of the given URL