See: Description
Interface | Description |
---|---|
MockApnsServerListener |
Mock APNs server listeners are notified when push notifications are accepted or rejected by a
MockApnsServer . |
PushNotificationHandler |
Push notification handlers process push notifications sent to a
MockApnsServer and decide how the server
should respond to those notifications. |
PushNotificationHandlerFactory |
A push notification handler factory constructs
PushNotificationHandler instances when a mock APNs server
accepts a new connection. |
Class | Description |
---|---|
AcceptAllPushNotificationHandlerFactory |
A factory for push notification handlers that unconditionally accept all push notifications.
|
MockApnsServer |
A mock APNs server is an HTTP/2 server that can be configured to respond to APNs push notifications with a variety
of behaviors.
|
MockApnsServerBuilder |
A
MockApnsServerBuilder constructs new MockApnsServer instances. |
ParsingMockApnsServerListenerAdapter |
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. |
ValidatingPushNotificationHandlerFactory |
A push notification handler factory that constructs handlers that, to the extent possible, perform the same checks
and validation steps as a real APNs server.
|
Enum | Description |
---|---|
RejectionReason |
An enumeration of reasons a push notification may be rejected by an APNs server.
|
Exception | Description |
---|---|
RejectedNotificationException |
An exception thrown by
PushNotificationHandler instances to indicate that a push notification should be
rejected by the server. |
UnregisteredDeviceTokenException |
An exception thrown by
PushNotificationHandler instances to indicate that a push notification should be
rejected by the server because its destination device token is no longer valid (presumably because the receiving app
has been removed from the destination device). |
Contains classes and interfaces for working with mock APNs servers. Mock APNs servers are useful primarily for integration testing and benchmarking, and callers will not need to use anything in this package to send push notifications to a real APNs server.
Callers construct mock APNs servers using a MockApnsServerBuilder
. Mock servers
require a PushNotificationHandler
that controls whether the server accepts or
rejects individual notifications.
Copyright © 2013–2018 Turo. All rights reserved.