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

Class semper.commlayer.CLData

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

public class CLData
extends CLServices
This commerce layer interface defines the generic interface of the send data service that the commerce layer should provide;
Version:
$Revision: 1.3 $ $Date: 1996/11/05 16:50:55 $
Author:
Karsten Riede (riede@heidelbg.ibm.com)

Constructor Index

 o CLData()
Constructor.

Method Index

 o receive(CLConnection)
Method to receive any general data on client/server side.
 o send(CLConnection, String, CLContentData, Security)
Method to send data between client and server and vice versa.

Constructors

 o CLData
  public CLData()
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
Method to send data between client and server and vice versa. 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 Before the data send method is called an object of the class CLConnection has to be created to establish the connection to the remote SEMPER system. If a correct connection is established, the data service can be used. The data method creates the corresponding container structure within the transfer layer and sends it to the remote system.
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
data - references to an object containing all data for the information to be sent.
sattr - references to an object containing all relevant security attributes for the data transmission.
Returns:
returns status of send transactions
Throws: CLException
A serious error occured during the attempt 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
Method to receive any general data on client/server side. 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 Before the CLData.receive method is called an object of the class CLConnection has to be created to establish the connection to the remote SEMPER system. If a correct CL session is established, the CLData 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 received data.
Throws: CLException
A serious error occured during the attempt 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