org.openmms.ejb.server
Class NotificationBuilder

java.lang.Object
  |
  +--org.openmms.ejb.server.NotificationBuilder

public class NotificationBuilder
extends java.lang.Object

Title: NotificationBuilder.java

Description: Builds a notification to the message recipient

Copyright: Copyright (c) 2003 OpenMMS.org


Constructor Summary
NotificationBuilder()
           
 
Method Summary
 void addParameter(int nParamName, int nParamValue)
          Insert parameter for building of notification (integer)
 void addParameter(int nParamName, long nParamValue)
          Insert parameter for building of notification (long)
 void addParameter(int nParamName, java.lang.String sParamValue)
          Insert parameter for building of notification (string)
 java.lang.String getNotification()
          Verify that all mandatory headers are set and builds the notification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationBuilder

public NotificationBuilder()
Method Detail

addParameter

public void addParameter(int nParamName,
                         int nParamValue)
                  throws OpenMMSException
Insert parameter for building of notification (integer)

Parameters:
nParamName -
nParamValue -
Throws:
OpenMMSException

addParameter

public void addParameter(int nParamName,
                         long nParamValue)
                  throws OpenMMSException
Insert parameter for building of notification (long)

Parameters:
nParamName -
nParamValue -
Throws:
OpenMMSException

addParameter

public void addParameter(int nParamName,
                         java.lang.String sParamValue)
                  throws OpenMMSException
Insert parameter for building of notification (string)

Parameters:
nParamName -
sParamValue -
Throws:
OpenMMSException

getNotification

public java.lang.String getNotification()
                                 throws OpenMMSException
Verify that all mandatory headers are set and builds the notification

Returns:
a notifiction string
Throws:
OpenMMSException