public class FCMPushNotfHandler extends BaseRouterHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FCMPUSHNOTF_REGISTRATIONTOKEN |
static java.lang.String |
MESSAGE_KEY |
static java.lang.String |
PUSHNOTF_LOGGER |
static MXLogger |
PUSHNOTFLOGGER |
BIDICONFIG, PASSWORD, USERNAME
Constructor and Description |
---|
FCMPushNotfHandler() |
FCMPushNotfHandler(NotificationMessage notificationMessage) |
Modifier and Type | Method and Description |
---|---|
com.ibm.json.java.JSONObject |
getFCMDataMessage() |
com.ibm.json.java.JSONObject |
getFCMNotificationMessage()
This method builds the payload for posting the message.
|
java.lang.String |
getHandlerURL()
This method returns the provider url to post message.
|
java.util.Map |
getHeaders(java.lang.String serviceacctjson)
This method sets and returns the header for the url to post message.
|
java.util.List<RouterPropsInfo> |
getProperties() |
byte[] |
invoke(java.util.Map metaData,
byte[] data)
All directly extending classes should call super.invoke(metaData, data) before proceeding
with the invoke.
|
void |
setProviderCredentials(java.lang.String deviceType,
java.lang.String serviceAcctJson,
java.lang.String projectId,
java.lang.String endPointUrl,
java.lang.String projectUri,
java.lang.String messageUri,
java.lang.String messagingScope) |
public static final java.lang.String PUSHNOTF_LOGGER
public static final MXLogger PUSHNOTFLOGGER
public static final java.lang.String FCMPUSHNOTF_REGISTRATIONTOKEN
public static final java.lang.String MESSAGE_KEY
public FCMPushNotfHandler()
public FCMPushNotfHandler(NotificationMessage notificationMessage)
public java.util.List<RouterPropsInfo> getProperties()
public void setProviderCredentials(java.lang.String deviceType, java.lang.String serviceAcctJson, java.lang.String projectId, java.lang.String endPointUrl, java.lang.String projectUri, java.lang.String messageUri, java.lang.String messagingScope)
public byte[] invoke(java.util.Map metaData, byte[] data) throws MXException
BaseRouterHandler
invoke
in interface RouterHandler
invoke
in class BaseRouterHandler
MXException
RouterHandler.invoke(java.util.Map, byte[])
public java.lang.String getHandlerURL()
public java.util.Map getHeaders(java.lang.String serviceacctjson)
serviceacctjson
- public com.ibm.json.java.JSONObject getFCMNotificationMessage() throws MXException
MXException
public com.ibm.json.java.JSONObject getFCMDataMessage() throws MXException
MXException