jPOS 1.6.1 API Documentation

org.jpos.core
Interface CardAgent


public interface CardAgent

Since:
jPOS 1.1 Implements financial institution specific functionality
CardAgent may rely on jPOS's ISO package for the low level interchange implementation.
Version:
$Revision: 2594 $ $Date: 2008-01-22 08:41:31 -0800 (Tue, 22 Jan 2008) $
Author:
apr@cs.com.uy

Method Summary
 boolean canHandle(CardTransaction t)
           
 Configuration getConfiguration()
           
 int getID()
           
 PersistentEngine getPersistentEngine()
           
 java.lang.String getPropertyPrefix()
           
 CardTransactionResponse process(CardTransaction t)
          Process the transaction
 void setPersistentEngine(PersistentEngine engine)
          Set PersistentEngine associated with this CardAgent
 

Method Detail

getID

int getID()
Returns:
agent unique ID

getConfiguration

Configuration getConfiguration()
Returns:
Configuration instance

canHandle

boolean canHandle(CardTransaction t)
Parameters:
t - CardTransaction
Returns:
true if agent is able/willing to handle this transaction

process

CardTransactionResponse process(CardTransaction t)
                                throws CardAgentException
Process the transaction

Parameters:
t - previously promoted CardTransaction
Returns:
CardTransactionInfo object associated with this transaction
Throws:
CardAgentException

getPropertyPrefix

java.lang.String getPropertyPrefix()
Returns:
property prefix used in configuration

setPersistentEngine

void setPersistentEngine(PersistentEngine engine)
Set PersistentEngine associated with this CardAgent

Parameters:
engine - a PersistentEngine instance

getPersistentEngine

PersistentEngine getPersistentEngine()
Returns:
PersistentEngine instance

jPOS.org