Class PackagerWrapper
java.lang.Object
org.jpos.iso.packager.PackagerWrapper
- All Implemented Interfaces:
Configurable, ISOPackager, LogSource
public abstract class PackagerWrapper
extends Object
implements ISOPackager, LogSource, Configurable
Wrapper on standard packager
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Configurationprotected Loggerprotected Stringprotected ISOPackager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFieldDescription(ISOComponent m, int fldNumber) getRealm()abstract byte[]pack(ISOComponent c) voidrequiresinner-packagerpropertyvoidvoidsetPackager(ISOPackager packger) abstract intunpack(ISOComponent c, byte[] b) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ISOPackager
createISOMsg, getDescription, unpack
-
Field Details
-
logger
-
realm
-
standardPackager
-
cfg
-
-
Constructor Details
-
PackagerWrapper
public PackagerWrapper()
-
-
Method Details
-
pack
- Specified by:
packin interfaceISOPackager- Parameters:
c- the Component to pack- Returns:
- Message image
- Throws:
ISOException- on error
-
unpack
- Specified by:
unpackin interfaceISOPackager- Parameters:
c- the Container of this messageb- ISO message image- Returns:
- consumed bytes
- Throws:
ISOException- on error
-
getFieldDescription
- Specified by:
getFieldDescriptionin interfaceISOPackager- Parameters:
m- the Container (i.e. an ISOMsg)fldNumber- the Field Number- Returns:
- Field Description
-
setPackager
-
getPackager
-
setLogger
-
getRealm
-
getLogger
-
setConfiguration
requiresinner-packagerproperty- Specified by:
setConfigurationin interfaceConfigurable- Parameters:
cfg- Configuration object- Throws:
ConfigurationException
-