org.jpos.iso.packager
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
- Version:
- $Revision$ $Date$
- Author:
- bharavi gade
- See Also:
ISOPackager
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected Logger logger
realm
protected String realm
standardPackager
protected ISOPackager standardPackager
cfg
protected Configuration cfg
PackagerWrapper
public PackagerWrapper()
pack
public abstract byte[] pack(ISOComponent c)
throws ISOException
- Specified by:
pack in interface ISOPackager
- Parameters:
c - the Component to pack
- Returns:
- Message image
- Throws:
ISOException - on error
unpack
public abstract int unpack(ISOComponent c,
byte[] b)
throws ISOException
- Specified by:
unpack in interface ISOPackager
- Parameters:
c - the Container of this messageb - ISO message image
- Returns:
- consumed bytes
- Throws:
ISOException - on error
getFieldDescription
public String getFieldDescription(ISOComponent m,
int fldNumber)
- Specified by:
getFieldDescription in interface ISOPackager
- Parameters:
m - the Container (i.e. an ISOMsg)fldNumber - the Field Number
- Returns:
- Field Description
setPackager
public void setPackager(ISOPackager packger)
getPackager
public ISOPackager getPackager()
setLogger
public void setLogger(Logger logger,
String realm)
- Specified by:
setLogger in interface LogSource
getRealm
public String getRealm()
- Specified by:
getRealm in interface LogSource
getLogger
public Logger getLogger()
- Specified by:
getLogger in interface LogSource
setConfiguration
public void setConfiguration(Configuration cfg)
throws ConfigurationException
- requires
inner-packager property
- Specified by:
setConfiguration in interface Configurable
- Parameters:
cfg - Configuration object
- Throws:
ConfigurationException
Copyright © 1998-2012 jPOS.org. All Rights Reserved.