public final class BaseFirebaseRestNamespaceFactory extends java.lang.Object implements FirebaseRestNamespaceFactory
FirebaseRestNamespaceFactory 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 |
|---|
BaseFirebaseRestNamespaceFactory(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 |
|---|---|
FirebaseRestNamespace |
create(java.lang.String namespaceUrl,
java.lang.String firebaseAccessToken)
Factory method to create a new instance of a
FirebaseRestNamespace for the given URL, using the
provided access token as the auth query parameter. |
public BaseFirebaseRestNamespaceFactory(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 FirebaseRestNamespace create(java.lang.String namespaceUrl, java.lang.String firebaseAccessToken)
FirebaseRestNamespaceFactoryFirebaseRestNamespace for the given URL, using the
provided access token as the auth query parameter.create in interface FirebaseRestNamespaceFactorynamespaceUrl - The URL root URL to the Firebase namespace, i.e. https://myinstance.firebaseio.comfirebaseAccessToken - The access token to be used for all requests to this namespace. Value can be nullFirebaseRestNamespace representing the namespace of the given URL