org.mmbase.applications.xmlimporter
Class TransactionHandler

java.lang.Object
  |
  +--org.mmbase.module.Module
        |
        +--org.mmbase.applications.xmlimporter.TransactionHandler
All Implemented Interfaces:
TransactionHandlerInterface

public class TransactionHandler
extends Module
implements TransactionHandlerInterface

This class parses the TML code and calls the appropriate methods in TransactionManager TemporarayNodeManager org.mmabse.module.core Furthermore is does some nameserving.

Since:
MMBase-1.5
Version:
$Id: TransactionHandler.java,v 1.4.2.2 2003/01/09 14:39:31 robmaris Exp $
Author:
John Balder: 3MPS, Rob Vermeulen: VPRO, Rob van Maris: Finnalist IT Group, Erik Visser: Finnalist IT Group

Constructor Summary
TransactionHandler()
          Create new TransactionHandler.
 
Method Summary
 void handleTransaction(java.io.Reader input, Consultant consultant)
          parses transactions xml file delivered by the reader and executes the TCP commands.
 void handleTransaction(java.lang.String template, sessionInfo session, scanpage sp)
          special version of handleTransaction for SCAN PAGES this version can be removed if scan is not supported anymore parses transactions xml file delivered by the reader and executes the TCP commands.
 void handleTransactionAsynchronously(java.io.Reader input, Consultant consultant)
          starts handleTransaction(java.io.Reader input) in a seperate thread
 void init()
          Initialize the transactionhandler module.
 void onload()
          This method is called on loading of the transactionhandler module and writes a log entry that the TransactionHandler is loaded.
 
Methods inherited from class org.mmbase.module.Module
getClassName, getInitParameter, getInitParameters, getMaintainer, getMimeType, getMimeTypeFile, getModule, getModule, getModuleInfo, getModules, getName, getProperties, getProperty, getVersion, hasStarted, loadModulesFromDisk, maintainance, setClassName, setInitParameter, setMaintainer, setName, setVersion, shutdown, shutdownModules, startModule, startModules, state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionHandler

public TransactionHandler()
Create new TransactionHandler.
Method Detail

onload

public void onload()
This method is called on loading of the transactionhandler module and writes a log entry that the TransactionHandler is loaded.
Overrides:
onload in class Module

init

public void init()
Initialize the transactionhandler module.
Overrides:
init in class Module

handleTransaction

public void handleTransaction(java.lang.String template,
                              sessionInfo session,
                              scanpage sp)
special version of handleTransaction for SCAN PAGES this version can be removed if scan is not supported anymore parses transactions xml file delivered by the reader and executes the TCP commands.
Specified by:
handleTransaction in interface TransactionHandlerInterface
Parameters:
template - the template containing the TCP commands
session - the session variables of a user
sp - the scanpage

handleTransactionAsynchronously

public void handleTransactionAsynchronously(java.io.Reader input,
                                            Consultant consultant)
starts handleTransaction(java.io.Reader input) in a seperate thread
Parameters:
input - input
consultant - The intermediate import object. Used to set and get status from and set and get objects to and from.

handleTransaction

public void handleTransaction(java.io.Reader input,
                              Consultant consultant)
parses transactions xml file delivered by the reader and executes the TCP commands.
Parameters:
input - the connection to the input source
consultant - The intermediate import object. Used to set and get status from and set and get objects to and from.


MMBase build 1.6.5.20030923