com.siebel.rf.offline.branch.server
Class Handler

java.lang.Object
  |
  +--com.siebel.rf.offline.branch.server.Handler
All Implemented Interfaces:
RequestHandler
Direct Known Subclasses:
BranchEndOfDayHandler, BranchStartOfDayHandler, BusinessDayProcessingHandler, CashManagementHandler, CheckBatchingHandler, CustomerSearchHandler, CustomerSessionHandler, EntitlementsAdapterHandler, EntitlementsAuthenticationHandler, EntitlementsAuthorisationHandler, IsMaintainJournalHandler, IsMaintainTellerHandler, IsSystemCalendarHandler, JournallingHandler, LogonHandler, MaintainCashBoxHandler, MaintainFinancialTransactionHandler, MakeBalancingTransactionHandler, MakeDepositHandler, MakeWithdrawalHandler, NegotiableInstrumentManagementHandler, SupervisorReferralHandler, TellerEndOfDayHandler, TellerStartOfDayHandler, TransactionFeesHandler, UserAdministrationHandler, UserMaintenanceHandler

public abstract class Handler
extends java.lang.Object
implements RequestHandler

The Handler class


Constructor Summary
Handler()
          The default constructor
Handler(OfflineListener listener)
          Constructor that sets the listener value
 
Method Summary
 void fireOfflineEvent(OfflineEvent offlineEvent)
          Fires offlienEvent
 java.util.Vector getOriginalRequest()
          Returns originalRequest
 java.util.Vector getRequest()
          Returns request
 java.util.Vector getResponse()
          Returns response
abstract  java.util.Vector handleRequest()
          Returns handleRequest
 java.util.Vector handleRequest(java.util.Vector request, java.util.Vector response, boolean branchOnline)
          Sets the request, response, branchOnline with the given parameter values then returns the Vector of handleRequest
 boolean isAValidResponse(java.util.Vector response)
          Gets the datapacket name after converting given Vector response into datapacket , if the name contains EXCEPTION then returns false otherwise returns ture
 boolean isBranchOnline()
          Returns branchOnline
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Handler

public Handler()
The default constructor

Handler

public Handler(OfflineListener listener)
Constructor that sets the listener value
Parameters:
listener - OfflineListener
Method Detail

handleRequest

public java.util.Vector handleRequest(java.util.Vector request,
                                      java.util.Vector response,
                                      boolean branchOnline)
                               throws com.bankframe.ejb.ProcessingErrorException,
                                      com.bankframe.validation.ValidationException
Sets the request, response, branchOnline with the given parameter values then returns the Vector of handleRequest
Specified by:
handleRequest in interface RequestHandler
Parameters:
request - Vector
response - Vector
branchOnline - boolean
Returns:
the Vector of handleRequest
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

handleRequest

public abstract java.util.Vector handleRequest()
                                        throws com.bankframe.ejb.ProcessingErrorException,
                                               com.bankframe.validation.ValidationException
Returns handleRequest
Returns:
the Vector of handleRequest
Throws:
com.bankframe.ejb.ProcessingErrorException - This exception is thrown if processing fails
com.bankframe.validation.ValidationException - This exception is thrown if validation fails

getRequest

public java.util.Vector getRequest()
Returns request
Returns:
the value of request

getOriginalRequest

public java.util.Vector getOriginalRequest()
Returns originalRequest
Returns:
the value of originalRequest

getResponse

public java.util.Vector getResponse()
Returns response
Returns:
the response

isBranchOnline

public boolean isBranchOnline()
Returns branchOnline
Returns:
the branchOnline

isAValidResponse

public boolean isAValidResponse(java.util.Vector response)
Gets the datapacket name after converting given Vector response into datapacket , if the name contains EXCEPTION then returns false otherwise returns ture
Specified by:
isAValidResponse in interface RequestHandler
Parameters:
response - Vector
Returns:
the boolean value after checking the response

fireOfflineEvent

public void fireOfflineEvent(OfflineEvent offlineEvent)
Fires offlienEvent