Class semper.BApp.FrmWrkSrv.BApp
All Packages Class Hierarchy This Package Previous Next Index
Class semper.BApp.FrmWrkSrv.BApp
java.lang.Object
|
+----semper.BApp.FrmWrkSrv.BApp
- public class BApp
- extends Object
- implements BusinessApp
This class defines the abstract Business Application
for SEMPER. Specifies the basic methods that can be
overwritten or extended by BA of specific companies.
- Version:
- $Revision: 1.6 $ $Date: 1996/12/10 14:35:45 $
- Author:
- Sofia Koutsoukou
- See Also:
- BusinessApp
-
AUTHENTICATE
- BA Request REQ_SRV Parameter Value that indicates Authentication.
-
connection
- The current or last CLConnection object associated with the BApp object
-
MEANS_OF_PAYMENT
- BA Request REQ_SRV Parameter Value that indicates Means of Payment.
-
OFFER
- BA Request REQ_SRV Parameter Value that indicates Offer.
-
PAY_COMPLETE
- BA Request REQ_SRV Parameter Value that indicates Payment.
-
PAY_CONT_START
- BA Request REQ_SRV Parameter Value that indicates the start of a
continues payment.
-
PAY_CONT_STOP
- BA Request REQ_SRV Parameter Value that indicates the end of a
continus payment.
-
req
- The current or last request processed by the BApp.
-
BApp(int, String)
- Contstructs a BApp object.
-
activate(BAReq)
- Activates the BApp object.
-
authenticate(BAReq)
- Authenticate the identity of the Business.
-
configEntryGet(String)
- gets product configuration entries in the configuration table.
-
deactivate(BAReq)
- Deactivates the BApp object.
-
getCL()
- Returns the CLConnection object associated with the BApp object
-
getId()
- Returns the id of the Business Application.
-
getType()
- Returns the type of the Business Application.
-
id()
- Return the id of the Busness Application.
-
isActive()
- True is the Business Application is active else false.
-
meansOfPayment(BAReq)
- Displays the means of payment accepted by the BA.
-
name()
- Return the name of the Busness Application.
-
offer(BAReq)
- Performs an offer indicated in the request.
-
pay(BAReq)
- Performs a complete payment indicated in the request.
-
payContinueStart(BAReq)
- Performs the oppening of a continuous payment process as indicated in the request.
-
payContinueStop(BAReq)
- Performs the closing of a continuous payment process as indicated in the request.
-
request(BAReq)
- Performs a Business Application Request.
-
setCL(CLConnection)
- Sets the CLConnection object associated with the BApp object
AUTHENTICATE
protected final static String AUTHENTICATE
- BA Request REQ_SRV Parameter Value that indicates Authentication.
MEANS_OF_PAYMENT
protected final static String MEANS_OF_PAYMENT
- BA Request REQ_SRV Parameter Value that indicates Means of Payment.
OFFER
protected final static String OFFER
- BA Request REQ_SRV Parameter Value that indicates Offer.
PAY_COMPLETE
protected final static String PAY_COMPLETE
- BA Request REQ_SRV Parameter Value that indicates Payment.
PAY_CONT_START
protected final static String PAY_CONT_START
- BA Request REQ_SRV Parameter Value that indicates the start of a
continues payment.
PAY_CONT_STOP
protected final static String PAY_CONT_STOP
- BA Request REQ_SRV Parameter Value that indicates the end of a
continus payment.
req
public BAReq req
- The current or last request processed by the BApp.
connection
protected CLConnection connection
- The current or last CLConnection object associated with the BApp object
BApp
public BApp(int id,
String name)
- Contstructs a BApp object.
- Parameters:
- id - the id of the BA (Session Id); unique in the type domain;
the type with the id form a unique ID of the
Business Application
- name - a refference name for the Business Application
e.g. EUROCOM EXPERTISE S.A. or FOGRA Inc or OTTO VERSAND Inc
- See Also:
- BusinessApp
id
public Integer id()
- Return the id of the Busness Application.
name
public String name()
- Return the name of the Busness Application.
configEntryGet
protected abstract BAppCfgEntry configEntryGet(String entryId)
- gets product configuration entries in the configuration table.
- Parameters:
- entryId - the Id of the product configuration entry
- request - the request which asks for the product configuration entry
- Returns:
- the product configuration entry of the specific product
- See Also:
- BAppConfigEntry
isActive
public boolean isActive()
- True is the Business Application is active else false.
- Returns:
- true if the Business Application is active else false.
getType
public String getType()
- Returns the type of the Business Application.
- Returns:
- the type of the Business Application
getId
public String getId()
- Returns the id of the Business Application.
- Returns:
- the id of the Business Application
request
public String request(BAReq req) throws BAExcept
- Performs a Business Application Request.
Dispatches the Business Application request invoked
on a specific Business Application.
- Parameters:
- req - the Business Application Request to be served
- Returns:
- the response of the served request
getCL
public CLConnection getCL()
- Returns the CLConnection object associated with the BApp object
- Returns:
- the CLConnection object associated with the BApp object
setCL
public void setCL(CLConnection connection)
- Sets the CLConnection object associated with the BApp object
- Parameters:
- connection - the CLConnection object associated with the BApp object
activate
protected abstract String activate(BAReq request)
- Activates the BApp object.
Used as the first request of a new BApp object. It causes the creation of
a new BApp object by the system.
- Parameters:
- request - the activation parameter list
- Returns:
- the HTML code that indicates start of session
deactivate
protected abstract String deactivate(BAReq request)
- Deactivates the BApp object. Removes the BApp from the BAppSessionManager.
- Parameters:
- request - the deactivation parameter list
- Returns:
- the HTML code that indicates start of session
authenticate
protected void authenticate(BAReq request)
- Authenticate the identity of the Business.
Implementation of the business application authentication;
This method can be overwitten or extended by sub-classes,
that implement Business Applications of specific companies.
- Parameters:
- request - the authentication parameter list
- See Also:
- BusinessApp
meansOfPayment
protected void meansOfPayment(BAReq request)
- Displays the means of payment accepted by the BA.
Implementation of the business application meansOfPayment service;
This method can be overwitten or extended by sub-classes,
that implement Business Applications of specific companies.
- Parameters:
- request - the meansOfPayment parameter list
- See Also:
- BusinessApp
offer
protected void offer(BAReq request)
- Performs an offer indicated in the request.
- See Also:
- BusinessApp
pay
protected String pay(BAReq request)
- Performs a complete payment indicated in the request.
- Parameters:
- request - the payment parameter list
- Returns:
- the response of the served request
- See Also:
- BusinessApp
payContinueStart
protected String payContinueStart(BAReq request)
- Performs the oppening of a continuous payment process as indicated in the request.
- See Also:
- BusinessApp
payContinueStop
protected void payContinueStop(BAReq request)
- Performs the closing of a continuous payment process as indicated in the request.
- See Also:
- BusinessApp
All Packages Class Hierarchy This Package Previous Next Index