public class IBMPushNotfHandler extends BaseRouterHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MESSAGE_KEY |
static java.lang.String |
PUSHNOTF_LOGGER |
static MXLogger |
PUSHNOTFLOGGER |
BIDICONFIG, PASSWORD, USERNAME
Constructor and Description |
---|
IBMPushNotfHandler()
Constructor
|
IBMPushNotfHandler(NotificationMessage notificationMessage) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthURL()
Returns the authurl for the provider for token generation.
|
java.lang.String |
getHandlerURL()
Returns provider url for posting message.
|
java.util.Map |
getHeaders()
Sets the header properties for the http post for the message.
|
IBMNotificationMessage |
getIBMNotificationMessage() |
byte[] |
getMessagePayload() |
java.util.List<RouterPropsInfo> |
getProperties() |
byte[] |
invoke(java.util.Map metaData,
byte[] data)
invoke
|
void |
setMessagePayload()
This method creates payload for the http post for the message.
|
void |
setProviderCredentials(java.lang.String deviceType,
java.lang.String clientSecret,
java.lang.String appGUID,
java.lang.String authURL,
java.lang.String endpointUrl,
java.lang.String apiKey)
This method sets the provider credentials.
|
public static final java.lang.String PUSHNOTF_LOGGER
public static final MXLogger PUSHNOTFLOGGER
public static final java.lang.String MESSAGE_KEY
public IBMPushNotfHandler(NotificationMessage notificationMessage)
public IBMPushNotfHandler()
public void setProviderCredentials(java.lang.String deviceType, java.lang.String clientSecret, java.lang.String appGUID, java.lang.String authURL, java.lang.String endpointUrl, java.lang.String apiKey) throws MXException
deviceType
- clientSecret
- appGUID
- authURL
- endpointUrl
- apiKey
- MXException
public byte[] invoke(java.util.Map metaData, byte[] data) throws MXException
invoke
in interface RouterHandler
invoke
in class BaseRouterHandler
MXException
RouterHandler.invoke(java.util.Map, byte[])
public java.lang.String getHandlerURL()
public java.lang.String getAuthURL()
public java.util.Map getHeaders()
public IBMNotificationMessage getIBMNotificationMessage() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setMessagePayload() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public byte[] getMessagePayload() throws MXException
MXException
public java.util.List<RouterPropsInfo> getProperties()