All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.payment.mandate.mandateModuleMessage

java.lang.Object
   |
   +----semper.payment.mandate.mandateModuleMessage

public class mandateModuleMessage
extends Object
implements Serializable
Message class for protocol messages in the "mandate payment system". A payment in the mandate system is implemented using the following very simple protocal: 1) The payer asks the payee for his certificate (MT_REQCERT) 2) The payee sends the certificate (MT_SENDCERT) 3) The payer sends the cheque (MT_SENDCHEQUE) 4) the payee acknowledges the receipt of the cheque (MT_CHEQUEACK)

Version:
$Revision: 1.5 $ $Date: 1998/09/29 15:56:05 $
Author:
Bjarke Dahl Ebert (bde@cryptomathic.dk)

Variable Index

 o MT_CHEQUEACK
 o MT_ERROR
 o MT_ILLEGAL
 o MT_REQCERT
 o MT_SENDCERT
 o MT_SENDCHEQUE
 o SC_BADCHEQUE
Malformed cheque received
 o SC_NONE
Default status code for genericModuleException
 o SC_SUCCESS
Payment was successful
 o SC_UNEXPMESG
Unexpected type of message arrived

Constructor Index

 o mandateModuleMessage()
Constructor without arguments
 o mandateModuleMessage(int, Serializable)
Constructor

Method Index

 o errorMessage(int)
Retrieve an error message string coresponding to code
 o getMessageData()
Accessor method
 o getMessageType()
Accessor method
 o toString()

Variables

 o MT_ILLEGAL
 public static final int MT_ILLEGAL
 o MT_REQCERT
 public static final int MT_REQCERT
 o MT_SENDCERT
 public static final int MT_SENDCERT
 o MT_SENDCHEQUE
 public static final int MT_SENDCHEQUE
 o MT_CHEQUEACK
 public static final int MT_CHEQUEACK
 o MT_ERROR
 public static final int MT_ERROR
 o SC_NONE
 public static final int SC_NONE
Default status code for genericModuleException

 o SC_SUCCESS
 public static final int SC_SUCCESS
Payment was successful

 o SC_UNEXPMESG
 public static final int SC_UNEXPMESG
Unexpected type of message arrived

 o SC_BADCHEQUE
 public static final int SC_BADCHEQUE
Malformed cheque received

Constructors

 o mandateModuleMessage
 public mandateModuleMessage(int messageType,
                             Serializable messageData)
Constructor

Parameters:
messageType - The type of MANDATE message
messageData - Further information in message (depends on type)
 o mandateModuleMessage
 public mandateModuleMessage()
Constructor without arguments

Methods

 o toString
 public String toString()
Overrides:
toString in class Object
 o errorMessage
 public static String errorMessage(int code)
Retrieve an error message string coresponding to code

Parameters:
code - any one of the defined SC_ codes
Returns:
a string containing the corresponding error message
 o getMessageType
 public int getMessageType()
Accessor method

 o getMessageData
 public Serializable getMessageData()
Accessor method


All Packages  Class Hierarchy  This Package  Previous  Next  Index