Class ParsingMockApnsServerListenerAdapter

java.lang.Object
com.eatthepath.pushy.apns.server.ParsingMockApnsServerListenerAdapter
All Implemented Interfaces:
MockApnsServerListener

public abstract class ParsingMockApnsServerListenerAdapter
extends Object
implements MockApnsServerListener

A parsing APNs server listener is an abstract base class that parses HTTP/2 headers and payload byte buffers from a mock APNs server into ApnsPushNotification instances for easier handling.

Note that the mock server's decision to accept or reject a push notification is controlled by its PushNotificationHandler. As a result, notifications accepted by a mock server might be rejected by a real APNs server or vice versa. Push notifications parsed by this class may have missing, incomplete, or nonsense data regardless of whether they were accepted or rejected, and callers should use appropriate caution.

Since:
0.12
See Also:
MockApnsServerBuilder.setListener(MockApnsServerListener)