Class PackagerErrorLogger
java.lang.Object
org.jpos.tlv.packager.PackagerErrorLogger
- All Implemented Interfaces:
Configurable, PackagerErrorHandler, LogSource
public class PackagerErrorLogger
extends Object
implements PackagerErrorHandler, Configurable, LogSource
Default
PackagerErrorHandler that records pack/unpack failures to a
dedicated logger instead of aborting the operation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the Logger associated with this source.getRealm()Returns the log realm associated with this source.voidInvoked when packingmfails.voidhandleUnpackError(ISOComponent isoComponent, byte[] msg, ISOException e) Invoked when unpackingmsgintoisoComponentfails.voidConfigures this object with the suppliedConfiguration.voidAttaches aLoggerand realm to this log source.
-
Constructor Details
-
PackagerErrorLogger
public PackagerErrorLogger()Default constructor; no instance state to initialise.
-
-
Method Details
-
setLogger
-
getRealm
-
getLogger
-
setConfiguration
Description copied from interface:ConfigurableConfigures this object with the suppliedConfiguration.- Specified by:
setConfigurationin interfaceConfigurable- Parameters:
cfg- Configuration object- Throws:
ConfigurationException- if the configuration is invalid
-
handlePackError
Description copied from interface:PackagerErrorHandlerInvoked when packingmfails.- Specified by:
handlePackErrorin interfacePackagerErrorHandler- Parameters:
m- component being packede- failure raised by the packager
-
handleUnpackError
Description copied from interface:PackagerErrorHandlerInvoked when unpackingmsgintoisoComponentfails.- Specified by:
handleUnpackErrorin interfacePackagerErrorHandler- Parameters:
isoComponent- destination componentmsg- raw bytes being unpackede- failure raised by the packager
-