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

Class semper.commlayer.CLConnection

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

public class CLConnection
extends Object
This commerce layer module provides services to establish a connection between a client and a server.
Version:
$Revision: 1.4 $ $Date: 1996/08/29 14:54:16 $
Author:
Ulrich Einig ([email protected]), Karsten Riede ([email protected])

Constructor Index

 o CLConnection()
Constructor of the basic service class used by all commerce layer services on the receiver site (i.e.
 o CLConnection(String, String, String, String, String)
Constructor of the basic service class used by all commerce layer services on sender site (i.e.

Method Index

 o get_BA_name()
Method to get the current used BA name long description with pre/post-conditions etc follows here
 o get_BA_session_id()
Method to get the current used BA session id long description with pre/post-conditions etc follows here
 o getLocalID()
Method to get the currently used local id long description with pre/post-conditions etc follows here
 o getNewContainerNumber()
Method to obtain a new container number for a container's id.
 o getRemoteID()
Method to get the currently used remote id long description with pre/post-conditions etc follows here

Constructors

 o CLConnection
  public CLConnection(String remote_address,
                      String BA_session_id,
                      String BA_name,
                      String local_id,
                      String remote_id) throws CLException
Constructor of the basic service class used by all commerce layer services on sender site (i.e. usually the client). The constructor connects to the remote SEMPER server in order to establish the new BA session.
Parameters:
remote_address - defines the IP address of the remote server.

This can be either:
- an IP address (example: 1.2.3.4)
- an IP address + port (example: 1.2.3.4:1234)
- a host name (example: mycomputer.domain.name.ext)
- a host name + port (example: mycomputer.domain.name.ext:1234)

BA_session_id - describes the local BA_session_id and must be a UNIQUE identifier(!).
BA_name - defines a UNIQUE name of the BA which will be used in this session.
local_id - resembles the UNIQUE id of the local user who invokes a service request (used to get the keys associated).
remote_id - resembles the UNIQUE id of the remote application to interact with the local user (used to get the keys associated).
Throws: CLException
A serious error occurred during the attempt to establish a connection between client and server. long description with pre/post-conditions etc follows here
 o CLConnection
  public CLConnection() throws CLException
Constructor of the basic service class used by all commerce layer services on the receiver site (i.e. usually the Server); The constructor waits for an incomming BA call to establish the new BA session; After initialisation of the current object, the general receive method could be called or a send in order to react on a request received before.
Throws: CLException
A serious error occurred during the attempt to establish a connection between server and client. long description with pre/post-conditions etc follows here

Methods

 o getNewContainerNumber
  public int getNewContainerNumber() throws CLException
Method to obtain a new container number for a container's id. Each time this method is invoked the internal variable will be incremented to ensure a unique value. long description with pre/post-conditions etc follows here
Returns:
s An integer value denoting a unique container number
Throws: CLException
A serious error occurred during the attempt to obtain a unique id for a container.
See Also:
CLServices, Container
 o get_BA_session_id
  public String get_BA_session_id()
Method to get the current used BA session id long description with pre/post-conditions etc follows here
Returns:
an string containing the unique session id of the BA
 o get_BA_name
  public String get_BA_name()
Method to get the current used BA name long description with pre/post-conditions etc follows here
Returns:
an string containing the unique name of the BA
 o getLocalID
  public String getLocalID()
Method to get the currently used local id long description with pre/post-conditions etc follows here
Returns:
an string containing the unique session id of the BA
 o getRemoteID
  public String getRemoteID()
Method to get the currently used remote id long description with pre/post-conditions etc follows here
Returns:
an string containing the unique session id of the BA

All Packages  Class Hierarchy  This Package  Previous  Next  Index