Class semper.commlayer.CLOffer
All Packages Class Hierarchy This Package Previous Next Index
Class semper.commlayer.CLOffer
java.lang.Object
|
+----semper.commlayer.CLServices
|
+----semper.commlayer.CLOffer
- public class CLOffer
- extends CLServices
This commerce layer class defines the generic interface of the
send offer service that the commerce layer should provide; the function
should normally be used by the SEMPER Server BA as an answer to the
OfferRequest of the SEMPER Client BA.
- Version:
- $Revision: 1.8 $ $Date: 1996/11/05 16:50:57 $
- Author:
- Karsten Riede ([email protected])
-
CLOffer()
- Constructor.
-
receive(CLConnection)
- Service to receive an electronic offer from a Server upon a previously
issued OfferRequest.send.
-
send(CLConnection, String, CLContentData, Security)
- Service to send an electronic offer upon a previously received
CLOfferRequest.
CLOffer
public CLOffer()
- Constructor.
long description with pre/post-conditions etc follows here
send
public int send(CLConnection connection,
String ba_description,
CLContentData data,
Security sattr) throws CLException
- Service to send an electronic offer upon a previously received
CLOfferRequest. Usually 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 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 CL connection is established, the
offer serivce can be used.
The offer method creates for the passed data 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 - reference to a object containing all data for the
offer.
- satt - reference to an object containing all relevant
security attributes for sending the offer.
- Returns:
- returns status of send 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
receive
public CLContentData receive(CLConnection connection) throws CLException
- Service to receive an electronic offer from a Server upon a previously
issued OfferRequest.send. Usually to be used by a Client.
The function allows the reception 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 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 onnection is established, the
offer serivce can be used.
This method receives the corresponding container structure within the
transfer layer and returns the data to the requesting BA.
- Parameters:
- connection - object representing the connection to be used to send
data to the remote host.
- Returns:
- returns OfferRequest data.
- Throws: CLException
- A serious error occured
during attempts to receive
a container.
- Overrides:
- receive in class CLServices
- See Also:
- CLServices, OfferRequest, CLContentData, CLException, Security
All Packages Class Hierarchy This Package Previous Next Index