Dispatcher



javacard.framework.service
Class Dispatcher

java.lang.Object
  extended by javacard.framework.service.Dispatcher

public class Dispatcher
extends Object


Field Summary
static byte PROCESS_COMMAND
           
static byte PROCESS_INPUT_DATA
           
static byte PROCESS_NONE
           
static byte PROCESS_OUTPUT_DATA
           
 
Constructor Summary
Dispatcher(short maxServices)
           
 
Method Summary
 void addService(Service service, byte phase)
           
 Exception dispatch(APDU command, byte phase)
           
 void process(APDU command)
           
 void removeService(Service service, byte phase)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROCESS_COMMAND

public static final byte PROCESS_COMMAND
See Also:
Constant Field Values

PROCESS_INPUT_DATA

public static final byte PROCESS_INPUT_DATA
See Also:
Constant Field Values

PROCESS_NONE

public static final byte PROCESS_NONE
See Also:
Constant Field Values

PROCESS_OUTPUT_DATA

public static final byte PROCESS_OUTPUT_DATA
See Also:
Constant Field Values
Constructor Detail

Dispatcher

public Dispatcher(short maxServices)
           throws ServiceException
Throws:
ServiceException
Method Detail

addService

public void addService(Service service,
                       byte phase)
                throws ServiceException
Throws:
ServiceException

removeService

public void removeService(Service service,
                          byte phase)
                   throws ServiceException
Throws:
ServiceException

dispatch

public Exception dispatch(APDU command,
                          byte phase)
                   throws ServiceException
Throws:
ServiceException

process

public void process(APDU command)
             throws ISOException
Throws:
ISOException