|
|||||||||
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.
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getCommand()
public boolean isErrorResponsePacket()
public int getStatus()
public boolean isValidErrorMessage()
public int getIdentifier()
public String getMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |