Class VISA1Packager
java.lang.Object
org.jpos.util.SimpleLogSource
org.jpos.iso.packager.VISA1Packager
- All Implemented Interfaces:
ISOPackager, VISA1ResponseFilter, LogSource
- See Also:
-
Field Summary
FieldsFields inherited from class SimpleLogSource
logger, realm -
Constructor Summary
ConstructorsConstructorDescriptionVISA1Packager(int[] sequence, int respField, String badResultCode, String okPattern) -
Method Summary
Modifier and TypeMethodDescriptiongetFieldDescription(ISOComponent m, int fldNumber) protected intbyte[]pack(ISOComponent c) voidintunpack(ISOComponent m, byte[] b) voidunpack(ISOComponent m, InputStream in)
-
Field Details
-
FS
-
-
Constructor Details
-
VISA1Packager
- Parameters:
sequence- array of fields that go to VISA1 requestrespField- where to put responsebadResultCode- (i.e. "05")okPattern- (i.e. "AUT. ")
-
-
Method Details
-
setVISA1ResponseFilter
-
handleSpecialField35
protected int handleSpecialField35(ISOMsg m, ByteArrayOutputStream bout) throws ISOException, IOException - Throws:
ISOExceptionIOException
-
pack
- Specified by:
packin interfaceISOPackager- Parameters:
c- the Component to pack- Returns:
- Message image
- Throws:
ISOException- on error
-
guessAutNumber
- Specified by:
guessAutNumberin interfaceVISA1ResponseFilter- Returns:
- authorization number or null
-
unpack
- Specified by:
unpackin interfaceISOPackager- Parameters:
m- the Container of this messageb- ISO message image- Returns:
- consumed bytes
- Throws:
ISOException- on error
-
unpack
- Specified by:
unpackin interfaceISOPackager- Throws:
ISOException
-
getFieldDescription
- Specified by:
getFieldDescriptionin interfaceISOPackager- Parameters:
m- the Container (i.e. an ISOMsg)fldNumber- the Field Number- Returns:
- Field Description
-
getDescription
- Specified by:
getDescriptionin interfaceISOPackager- Returns:
- Packager's Description
-
createISOMsg
- Specified by:
createISOMsgin interfaceISOPackager- Returns:
- an ISOMsg
-