public class Message extends Object
For details have a look at the Message Format Specification.
| Constructor and Description |
|---|
Message() |
| Modifier and Type | Method and Description |
|---|---|
String |
getActionCategory()
Returns the value of the 'action-category', which is used on the client (iOS for now),
to invoke a certain "user action" on the device, based on the push message.
|
String |
getAlert()
Returns the value of the 'alert' key from the submitted payload.
|
int |
getBadge()
Returns the value of the 'badge' key from the submitted payload.
|
String |
getSimplePush()
Returns the SimplePush specific version number.
|
String |
getSound()
Returns the value of the 'sound' key from the submitted payload.
|
Map<String,Object> |
getUserData()
Returns a Map, representing any other key-value pairs that were send
to the RESTful Sender API.
|
boolean |
isContentAvailable()
Used for in iOS specific feature, to indicate if content (for Newsstand or silent messages) has marked as
being available
Not supported on other platforms.
|
void |
setActionCategory(String actionCategory) |
void |
setAlert(String alert) |
void |
setBadge(int badge) |
void |
setContentAvailable(boolean contentAvailable) |
void |
setSimplePush(String simplePush) |
void |
setSound(String sound) |
void |
setUserData(Map<String,Object> userData) |
String |
toString() |
public String getActionCategory()
public void setActionCategory(String actionCategory)
public String getAlert()
public void setAlert(String alert)
public String getSound()
public void setSound(String sound)
public boolean isContentAvailable()
public void setContentAvailable(boolean contentAvailable)
public int getBadge()
public void setBadge(int badge)
public Map<String,Object> getUserData()
"sport-news-channel15" : "San Francisco 49er won last game"
public String getSimplePush()
public void setSimplePush(String simplePush)
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.