com.notnoop.mpns.notifications
Class RawNotification
java.lang.Object
com.notnoop.mpns.notifications.RawNotification
- All Implemented Interfaces:
- MpnsNotification
public class RawNotification
- extends Object
- implements MpnsNotification
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RawNotification
public RawNotification(byte[] body,
List<? extends Map.Entry<String,String>> headers)
getRequestBody
public byte[] getRequestBody()
- Description copied from interface:
MpnsNotification
- Returns the binary representation of the payload.
- Specified by:
getRequestBody in interface MpnsNotification
getHttpHeaders
public List<? extends Map.Entry<String,String>> getHttpHeaders()
- Description copied from interface:
MpnsNotification
- Returns the identifier of the current message. The
identifier is an application generated identifier.
- Specified by:
getHttpHeaders in interface MpnsNotification
- Returns:
- the notification identifier
Copyright © 2015. All Rights Reserved.