|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bankframe.examples.txnhandler.connector.coboltest.CobolTestData
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 |
public static java.lang.String COBOLTEST_CONNECTOR_KEY
public static java.lang.String COBOL_MID_FILE
public static java.lang.String COBOL_MOD_FILE
public static java.lang.String COBOL_NUMBER_TYPE
public static java.lang.String COBOL_TEXT_TYPE
public static java.lang.String COBOL_MIDFILE_DEBUG
public static java.lang.String COBOL_MODFILE_DEBUG
public static java.lang.String COBOL_MODFILE_FILLFIELDS
Constructor Detail |
public CobolTestData()
Method Detail |
public static java.lang.String init(java.lang.String[] args)
public static void main(java.lang.String[] argv)
public byte[] processTransaction(byte[] request) throws ProcessingErrorException, java.io.IOException, CobolParserException, ValidationException
request
- is the Cobol input data from Transaction handler via Connector
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |