org.openmms.ejb.server
Class MM1_NotificationEJB

java.lang.Object
  |
  +--org.openmms.ejb.server.MM1_NotificationEJB
All Implemented Interfaces:
WapPushInterface

public class MM1_NotificationEJB
extends java.lang.Object
implements WapPushInterface

Title: MM1_Notification.java

Description: Builds and sends a notification to the message recipient

Copyright: Copyright (c) 2003 OpenMMS.org


Constructor Summary
MM1_NotificationEJB()
           
 
Method Summary
 boolean send(java.lang.String msgID)
          Receives an MM-ID, fetches MM from server, builds m-notification-ind, converts to hex, and sends via Clickatell class
 java.lang.String setUrl(java.lang.String sMessageID)
          Receives an MM-ID and returns a unique URL based on this
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MM1_NotificationEJB

public MM1_NotificationEJB()
Method Detail

send

public boolean send(java.lang.String msgID)
             throws OpenMMSException
Receives an MM-ID, fetches MM from server, builds m-notification-ind, converts to hex, and sends via Clickatell class

Specified by:
send in interface WapPushInterface
Parameters:
msgID -
Returns:
OK if notification is sent.
Throws:
OpenMMSException

setUrl

public java.lang.String setUrl(java.lang.String sMessageID)
Receives an MM-ID and returns a unique URL based on this

Specified by:
setUrl in interface WapPushInterface
Parameters:
sMessageID -
Returns:
URL as a text string