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

Class semper.commlayer.CLServices

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

public class CLServices
extends Object
This commerce layer interface defines the abstract generic class for the services the commerce layer should provide.
Version:
$Revision: 1.6 $ $Date: 1996/09/10 10:08:29 $
Author:
Ulrich Einig ([email protected]), Karsten Riede ([email protected])

Variable Index

 o CL_ACCEPTED
 o CL_FAILED
 o CL_NOT_ACCEPTED
 o CL_SUCCESS

Constructor Index

 o CLServices()
Constructor of the basic service class used by all commerce layer services.

Method Index

 o receive(CLConnection)
Method to receive data, a general receive for all kinds of elecronic transaction is to be found as an extra subclass named CLReceive.
 o send(CLConnection, String, CLContentData, Security)
Method to send data with special attributes to a remote SEMPER BA.

Variables

 o CL_SUCCESS
  public final static int CL_SUCCESS
 o CL_FAILED
  public final static int CL_FAILED
 o CL_ACCEPTED
  public final static int CL_ACCEPTED
 o CL_NOT_ACCEPTED
  public final static int CL_NOT_ACCEPTED

Constructors

 o CLServices
  public CLServices()
Constructor of the basic service class used by all commerce layer services. The constructor currently does not do anything yet. long description with pre/post-conditions etc follows here

Methods

 o send
  public abstract int send(CLConnection connection,
                           String ba_description,
                           CLContentData data,
                           Security sattr) throws CLException
Method to send data with special attributes to a remote SEMPER BA. It is to be overridden by any new service provided by the commerce layer package. long description with pre/post-conditions etc follows here
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 used service.
sattr - reference to a object containing all relevant security attributes for the order (can be set by the BA).
Returns:
returns status of send transactions
Throws: CLException
A serious error occured during attempts to send a container.
See Also:
CLReceive, CLOrder, CLOrderConfirm, CLPay, CLOrderPay, CLOrderPayConfirm, CLOffer, CLOfferRequest, CLContentData, CLConnection, CLContentData, CLException, Security
 o receive
  public abstract CLContentData receive(CLConnection connection) throws CLException
Method to receive data, a general receive for all kinds of elecronic transaction is to be found as an extra subclass named CLReceive. This receive-function may be overriden in for services who will use only one kind of data. long description with pre/post-conditions etc follows here
Parameters:
connection - object representing the connection to be used to receive data from a remote host.
Returns:
returns received data.
Throws: CLException
A serious error occured during attempts to receive a container.
See Also:
CLReceive, CLOrder, CLOrderConfirm, CLPay, CLOrderPay, CLOrderPayConfirm, CLOffer, CLOfferRequest, CLContentData, CLConnection, CLContentData, CLException, Security

All Packages  Class Hierarchy  This Package  Previous  Next  Index