Class semper.commlayer.CLOrderPay
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.commlayer.CLOrderPay

java.lang.Object
   |
   +----semper.commlayer.CLServices
           |
           +----semper.commlayer.CLOrderPay

public class CLOrderPay
extends CLServices
These methods are called from the SEMPER BAs on Client and Server side (Client does a CLOrderPay.send , Server does a CLOrderPay.receive). An order and the payment for it will be sent from Buyer to Seller.
Version:
$Revision: 1.4 $ $Date: 1996/08/29 14:54:32 $
Author:
Ulrich Einig ([email protected]), Karsten Riede ([email protected])

Constructor Index

 o CLOrderPay()
Constructor.

Method Index

 o receive(CLConnection)
Service to receive an electronic order and payment.
 o send(CLConnection, String, CLContentData, Security)
Service to send an electronic order and pay for it.

Constructors

 o CLOrderPay
  public CLOrderPay()
Constructor. long description with pre/post-conditions etc follows here

Methods

 o send
  public int send(CLConnection connection,
                  String ba_description,
                  CLContentData data,
                  Security sattr) throws CLException
Service to send an electronic order and pay for it. The function allows the sending of a "transparent" data string via SEMPER to a SEMPER server and the corresponding B-application. The data itself, that means the format and structure are defined by the BA (e.g. EDIFACT Order, a literature search call, an order for some products). Before the send method is called an object of the class CLConnection has to be created to establish the connection to the remote SEMPER server. If a correct connection is established, the order serivce can be used. This method creates the corresponding container structure within the transfer layer and sends it to the remote system. Before sending the data, this information will be displayed on the TINGUIN window.
Parameters:
connection - object representing the connection to be used to send data to the remote host.
ba_description - very short informal description of the BA which can be used to identify the BA on the TINGUIN.
data - reference to an object containing all data for the order and payment.
sattr - reference to a object containing all relevant security attributes for the order (can be set by the BA).
Returns:
returns status of order-pay transactions
Throws: CLException
A serious error occured during attempts to send a container.
Overrides:
send in class CLServices
See Also:
CLServices, CLOrder, CLPay, CLConnection, CLContentData, CLException, Security
 o receive
  public CLContentData receive(CLConnection connection) throws CLException
Service to receive an electronic order and payment. The function allows the sending of a "transparent" data string via SEMPER to a SEMPER server and the corresponding B-application. The data itself, that means the format and structure are defined by the BA (e.g. EDIFACT Order, a literature search call, an order for some products). Before the receive method is called an object of the class CLConnection has to be created to establish the connection to the remote SEMPER server. If a correct connection is established, the order serivce can be used. This method receives the order and payment data and returns it to the calling BA.
Parameters:
connection - object representing the connection to be used to send data to the remote host.
Returns:
returns received order and payment data.
Throws: CLException
A serious error occured during attempts to receive a container.
Overrides:
receive in class CLServices
See Also:
CLServices, CLOrder, CLPay, CLConnection, CLContentData, CLException, Security

All Packages  Class Hierarchy  This Package  Previous  Next  Index