2.9.3 (latest) 2.9.2 2.8.1 2.7.2 2.6.0 2.5.1 2.4.1 2.1.2 2.0.1 1.35.2 1.34.1 1.33.4 [com.google.api.client.util.Beta](https://docs.cloud.google.com/java/docs/reference/google-http-client/latest/com.google.api.client.util.Beta.md.txt)   

Notification channel handling based on the [Jackson 2](http://wiki.fasterxml.com/JacksonRelease20) JSON library.

## Classes

### [JacksonNotificationCallback\<T\>](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.json.jackson2.JacksonNotificationCallback.md.txt)

Beta   

A [TypedNotificationCallback](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.notifications.TypedNotificationCallback.md.txt) which uses a JSON content encoding with GsonFactory#getDefaultInstance().

Must NOT be implemented in form of an anonymous class as this will break serialization.

Implementation should be thread-safe. **Example usage:**

```java

 static class MyNotificationCallback
     extends JacksonNotificationCallback{@literal <}listresponse{@literal>} {

   private static final long serialVersionUID = 1L;

   {@literal @}Override
   protected void onNotification(StoredChannel channel,
       TypedNotification{@literal <}listresponse{@literal>} notification) {
     ListResponse content = notification.getContent();
     switch (notification.getResourceState()) {
     case ResourceStates.SYNC:
       break;
     case ResourceStates.EXISTS:
       break;
     case ResourceStates.NOT_EXISTS:
       break;
    }
   }

   {@literal @}Override
   protected Class{@literal <}listresponse{@literal>} getDataClass() throws IOException {
     return ListResponse.class;
   }
 }
 
```