Package | Description |
---|---|
com.google.api.client.googleapis.extensions.servlet.notifications |
Beta Support for subscribing to topics and receiving notifications on servlet-based platforms. |
com.google.api.client.googleapis.notifications |
Beta Support for notification channels to listen for changes to watched Google API resources. |
com.google.api.client.googleapis.testing.notifications |
Modifier and Type | Method and Description |
---|---|
static void |
WebhookUtils.processWebhookNotification(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
DataStore<StoredChannel> channelDataStore)
Utility method to process the webhook notification from
HttpServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) . |
Constructor and Description |
---|
NotificationServlet(DataStore<StoredChannel> channelDataStore)
Constructor that allows a specific notification data store to be specified.
|
Modifier and Type | Method and Description |
---|---|
StoredChannel |
StoredChannel.setClientToken(String clientToken)
Sets the the arbitrary string provided by the client associated with this subscription that is
delivered to the target address with each notification or
null for none. |
StoredChannel |
StoredChannel.setExpiration(Long expiration)
Sets the milliseconds in Unix time at which the subscription will expire or
null for an
infinite TTL. |
StoredChannel |
StoredChannel.setTopicId(String topicId)
Sets the opaque ID for the subscribed resource that is stable across API versions or
null for none. |
StoredChannel |
StoredChannel.store(DataStore<StoredChannel> dataStore)
Stores this notification channel in the given notification channel data store.
|
StoredChannel |
StoredChannel.store(DataStoreFactory dataStoreFactory)
Stores this notification channel in the notification channel data store, which is derived from
getDefaultDataStore(DataStoreFactory) on the given data store factory. |
Modifier and Type | Method and Description |
---|---|
static DataStore<StoredChannel> |
StoredChannel.getDefaultDataStore(DataStoreFactory dataStoreFactory)
Returns the stored channel data store using the ID
DEFAULT_DATA_STORE_ID . |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
TypedNotificationCallback.onNotification(StoredChannel storedChannel,
TypedNotification<T> notification)
Handles a received typed notification.
|
void |
TypedNotificationCallback.onNotification(StoredChannel storedChannel,
UnparsedNotification notification) |
void |
UnparsedNotificationCallback.onNotification(StoredChannel storedChannel,
UnparsedNotification notification)
Handles a received unparsed notification.
|
Modifier and Type | Method and Description |
---|---|
StoredChannel |
StoredChannel.store(DataStore<StoredChannel> dataStore)
Stores this notification channel in the given notification channel data store.
|
Modifier and Type | Method and Description |
---|---|
void |
MockUnparsedNotificationCallback.onNotification(StoredChannel storedChannel,
UnparsedNotification notification) |
Copyright © 2010–2020 Google. All rights reserved.