com.bankframe.examples.txnhandler.connector.coboltest
Class CobolTestData

java.lang.Object
  extended bycom.bankframe.examples.txnhandler.connector.coboltest.CobolTestData

public class CobolTestData
extends java.lang.Object

This class mimics the behaviour of a host system, it takes requests and returns responses. The class parses the specified Cobol copybook files to determine how the requests it receives are structured and how the responses it creates are structured. The Cobol mid copybook determines the structure of the input to the class and the Cobol mod copybook determines the structure of the output from the class. It it used for testing Transaction Handler functionality and Transaction MetaData design.


Field Summary
static java.lang.String COBOL_MID_FILE
          This member is the sub-key in the BankframeResource.properties that determines the name of the Cobol mid (input) copybook to use during request processing
static java.lang.String COBOL_MIDFILE_DEBUG
           
static java.lang.String COBOL_MOD_FILE
          This member is the sub-key in the BankframeResource.properties that determines the name of the Cobol mod (output) copybook to use during response processing
static java.lang.String COBOL_MODFILE_DEBUG
           
static java.lang.String COBOL_MODFILE_FILLFIELDS
           
static java.lang.String COBOL_NUMBER_TYPE
          This member is the sub-key in the BankframeResource.properties that determines the Cobol format of numbers in the Cobol response
static java.lang.String COBOL_TEXT_TYPE
          This member is the sub-key in the BankframeResource.properties that determines the Cobol format of text in the Cobol response
static java.lang.String COBOLTEST_CONNECTOR_KEY
          This member is the key in the BankframeResource.properties that the class uses for its settings
 
Constructor Summary
CobolTestData()
          Default constructor
 
Method Summary
static java.lang.String init(java.lang.String[] args)
          Parse the command line
static void main(java.lang.String[] argv)
           
 byte[] processTransaction(byte[] request)
          This method process a request and returns the appropriate response
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COBOLTEST_CONNECTOR_KEY

public static java.lang.String COBOLTEST_CONNECTOR_KEY
This member is the key in the BankframeResource.properties that the class uses for its settings


COBOL_MID_FILE

public static java.lang.String COBOL_MID_FILE
This member is the sub-key in the BankframeResource.properties that determines the name of the Cobol mid (input) copybook to use during request processing


COBOL_MOD_FILE

public static java.lang.String COBOL_MOD_FILE
This member is the sub-key in the BankframeResource.properties that determines the name of the Cobol mod (output) copybook to use during response processing


COBOL_NUMBER_TYPE

public static java.lang.String COBOL_NUMBER_TYPE
This member is the sub-key in the BankframeResource.properties that determines the Cobol format of numbers in the Cobol response


COBOL_TEXT_TYPE

public static java.lang.String COBOL_TEXT_TYPE
This member is the sub-key in the BankframeResource.properties that determines the Cobol format of text in the Cobol response


COBOL_MIDFILE_DEBUG

public static java.lang.String COBOL_MIDFILE_DEBUG

COBOL_MODFILE_DEBUG

public static java.lang.String COBOL_MODFILE_DEBUG

COBOL_MODFILE_FILLFIELDS

public static java.lang.String COBOL_MODFILE_FILLFIELDS
Constructor Detail

CobolTestData

public CobolTestData()
Default constructor

Method Detail

init

public static java.lang.String init(java.lang.String[] args)
Parse the command line


main

public static void main(java.lang.String[] argv)

processTransaction

public byte[] processTransaction(byte[] request)
                          throws ProcessingErrorException,
                                 java.io.IOException,
                                 CobolParserException,
                                 ValidationException
This method process a request and returns the appropriate response

Parameters:
request - is the Cobol input data from Transaction handler via Connector
Returns:
cobol data reply to Transaction handler via Connector
Throws:
ProcessingErrorException - if a processing error occurred
CobolParserException - if a Cobol parsing error occurred
java.io.IOException - if an IO error occurred
ValidationException - if a validation error occurred


Copyright © 2004 Siebel Systems, Inc. All rights reserved.