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

Class semper.commlayer.CLOrder

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

public class CLOrder
extends CLServices
This commerce layer service is used on both sides, Client and Server: The Client issues a CLOrder.send , the Server receives the order via invoking CLOrder.receive.
Version:
$Revision: 1.5 $ $Date: 1996/08/29 14:54:31 $
Author:
Karsten Riede ([email protected])

Constructor Index

 o CLOrder()
Constructor.

Method Index

 o receive(CLConnection)
Service to receive an electronic order (usage on the sender site).
 o send(CLConnection, String, CLContentData, Security)
Service to send an electronic order (usage on the sender site).

Constructors

 o CLOrder
  public CLOrder()
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 (usage on the sender site). 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. The order method creates the corresponding container structure within the transfer layer and send 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.
sattr - reference to a object containing all relevant security attributes for the order (can be set by the BA).
Returns:
returns status of order transactions
Throws: CLException
A serious error occured during attempts to send a container.
Overrides:
send in class CLServices
See Also:
CLServices, CLConnection, CLContentData, CLException, Security
 o receive
  public CLContentData receive(CLConnection connection) throws CLException
Service to receive an electronic order (usage on the sender site). 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 service can be used. This method receives a data container from the remote system via the transfer layer and delivers and extracts its contents in order to deliver it to the requesting BA.
Parameters:
connection - object representing the connection to be used to send data to the remote host.
Returns:
returns order data.
Throws: CLException
A serious error occured during attempts to receive a container.
Overrides:
receive in class CLServices
See Also:
CLServices, CLConnection, CLContentData, CLException, Security

All Packages  Class Hierarchy  This Package  Previous  Next  Index