com.relayrides.pushy.apns
Class ExpiredToken

java.lang.Object
  extended by com.relayrides.pushy.apns.ExpiredToken

public class ExpiredToken
extends Object

Represents a device token that the APN Feedback Service has reported as expired. According to Apple's documentation:

When a push notification cannot be delivered because the intended app does not exist on the device, the feedback service adds that device's token to its list. Push notifications that expire before being delivered are not considered a failed delivery and don't impact the feedback service.

Author:
Jon Chambers
See Also:
Local and Push Notification Programming Guide - Provider Communication with Apple Push Notification Service - The Feedback Service

Method Summary
 boolean equals(Object obj)
           
 Date getExpiration()
          Returns the time, rounded to the nearest second, when APNs determined that the application no longer exists on the device.
 byte[] getToken()
          Returns the token APNs has reported as expired.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getToken

public byte[] getToken()
Returns the token APNs has reported as expired.

Returns:
the expired token

getExpiration

public Date getExpiration()
Returns the time, rounded to the nearest second, when APNs determined that the application no longer exists on the device.

Returns:
the time, rounded to the nearest second, when APNs determined that the application no longer exists on the device

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 RelayRides. All rights reserved.