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 ([email protected])
-
MT_CHEQUEACK
-
-
MT_ERROR
-
-
MT_ILLEGAL
-
-
MT_REQCERT
-
-
MT_SENDCERT
-
-
MT_SENDCHEQUE
-
-
SC_BADCHEQUE
- Malformed cheque received
-
SC_NONE
- Default status code for genericModuleException
-
SC_SUCCESS
- Payment was successful
-
SC_UNEXPMESG
- Unexpected type of message arrived
-
mandateModuleMessage()
- Constructor without arguments
-
mandateModuleMessage(int, Serializable)
- Constructor
-
errorMessage(int)
- Retrieve an error message string coresponding to code
-
getMessageData()
- Accessor method
-
getMessageType()
- Accessor method
-
toString()
-
MT_ILLEGAL
public static final int MT_ILLEGAL
MT_REQCERT
public static final int MT_REQCERT
MT_SENDCERT
public static final int MT_SENDCERT
MT_SENDCHEQUE
public static final int MT_SENDCHEQUE
MT_CHEQUEACK
public static final int MT_CHEQUEACK
MT_ERROR
public static final int MT_ERROR
SC_NONE
public static final int SC_NONE
- Default status code for genericModuleException
SC_SUCCESS
public static final int SC_SUCCESS
- Payment was successful
SC_UNEXPMESG
public static final int SC_UNEXPMESG
- Unexpected type of message arrived
SC_BADCHEQUE
public static final int SC_BADCHEQUE
- Malformed cheque received
mandateModuleMessage
public mandateModuleMessage(int messageType,
Serializable messageData)
- Constructor
- Parameters:
- messageType - The type of MANDATE message
- messageData - Further information in message (depends on type)
mandateModuleMessage
public mandateModuleMessage()
- Constructor without arguments
toString
public String toString()
- Overrides:
- toString in class Object
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
getMessageType
public int getMessageType()
- Accessor method
getMessageData
public Serializable getMessageData()
- Accessor method
All Packages Class Hierarchy This Package Previous Next Index