|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.notnoop.apns.SimpleApnsNotification
public class SimpleApnsNotification
Represents an APNS notification to be sent to Apple service.
| Constructor Summary | |
|---|---|
SimpleApnsNotification(byte[] dtoken,
byte[] payload)
Constructs an instance of ApnsNotification. |
|
SimpleApnsNotification(String dtoken,
String payload)
Constructs an instance of ApnsNotification. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
byte[] |
getDeviceToken()
Returns the binary representation of the device token. |
int |
getExpiry()
Returns the expiry date of the notification, a fixed UNIX epoch date expressed in seconds |
int |
getIdentifier()
Returns the identifier of the current message. |
byte[] |
getPayload()
Returns the binary representation of the payload. |
int |
hashCode()
|
int |
length()
Returns the length of the message in bytes as it is encoded on the wire. |
byte[] |
marshall()
Returns the binary representation of the message as expected by the APNS server. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleApnsNotification(String dtoken,
String payload)
ApnsNotification.
The message encodes the payload with a UTF-8 encoding.
dtoken - The Hex of the device token of the destination phonepayload - The payload message to be sent
public SimpleApnsNotification(byte[] dtoken,
byte[] payload)
ApnsNotification.
dtoken - The binary representation of the destination device tokenpayload - The binary representation of the payload to be sent| Method Detail |
|---|
public byte[] getDeviceToken()
getDeviceToken in interface ApnsNotificationpublic byte[] getPayload()
getPayload in interface ApnsNotificationpublic byte[] marshall()
marshall in interface ApnsNotificationpublic int length()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int getIdentifier()
ApnsNotification
getIdentifier in interface ApnsNotificationpublic int getExpiry()
ApnsNotification
getExpiry in interface ApnsNotificationpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||