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

Class semper.commlayer.CLOfferRequest

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

public class CLOfferRequest
extends CLServices
This commerce layer interface defines the generic interface of the send offer-request service that the commerce layer should provide;
Version:
$Revision: 1.5 $ $Date: 1996/08/29 14:54:20 $
Author:
Karsten Riede ([email protected])

Constructor Index

 o CLOfferRequest()
Constructor.

Method Index

 o receive(CLConnection)
Method to receive an electronic offer-request.
 o send(CLConnection, String, CLContentData, Security)
Method to send an electronic offer-request.

Constructors

 o CLOfferRequest
  public CLOfferRequest()
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 an electronic offer-request. Used by Clients. 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 Offer. Before the offer 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 offer request service can be used. The offer request 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
data - references to an object containing all data for the offer-request.
sattr - references to an object containing all relevant security attributes for the offer-request.
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, CLOffer, CLConnection, CLContentData, CLException, Security
 o receive
  public CLContentData receive(CLConnection connection) throws CLException
Method to receive an electronic offer-request. To be used by a Server. 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 Offer. Before the CLOfferRequest.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 CLOfferRequest 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, CLOffer, CLConnection, CLContentData, CLException, Security

All Packages  Class Hierarchy  This Package  Previous  Next  Index