|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavapns.notification.ResponsePacket
public class ResponsePacket
A response packet, as described in Apple's enhanced notification format.
| Constructor Summary | |
|---|---|
protected |
ResponsePacket()
|
protected |
ResponsePacket(int command,
int status,
int identifier)
|
| Method Summary | |
|---|---|
int |
getCommand()
Returns the response's command number. |
int |
getIdentifier()
Returns the response's identifier, which matches the pushed notification's. |
String |
getMessage()
Returns a humand-friendly error message, as documented by Apple. |
int |
getStatus()
Returns the response's status code (see getMessage() for a human-friendly status message instead). |
boolean |
isErrorResponsePacket()
Determine if this packet is an error-response packet. |
boolean |
isValidErrorMessage()
Determine if this packet is a valid error-response packet. |
protected void |
linkToPushedNotification(PushNotificationManager notificationManager)
|
protected void |
setCommand(int command)
|
protected void |
setIdentifier(int identifier)
|
protected void |
setStatus(int status)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ResponsePacket()
protected ResponsePacket(int command,
int status,
int identifier)
| Method Detail |
|---|
protected void linkToPushedNotification(PushNotificationManager notificationManager)
public int getCommand()
protected void setCommand(int command)
public boolean isErrorResponsePacket()
public int getStatus()
protected void setStatus(int status)
public boolean isValidErrorMessage()
public int getIdentifier()
protected void setIdentifier(int identifier)
public String getMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||