Class FSDPackager
java.lang.Object
org.jpos.util.Log
org.jpos.iso.packager.FSDPackager
- All Implemented Interfaces:
ISOPackager, LogSource
Pass-through
ISOPackager that delegates pack/unpack to the component's own implementation.-
Field Summary
Fields inherited from class Log
DEBUG, defaultTags, ERROR, FATAL, INFO, logger, realm, TRACE, WARNModifier and TypeFieldDescriptionstatic final StringLevel constant for debug events.Default tags applied to everyLogEventcreated by thisLog.static final StringLevel constant for error events.static final StringLevel constant for fatal events.static final StringLevel constant for informational events.protected LoggerLogger receiving the events produced by thisLog.protected StringRealm associated with events emitted through thisLog.static final StringLevel constant for trace events.static final StringLevel constant for warning events. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates and returns a new ISOMsg instance appropriate for this packager.Returns a human-readable description of this packager.getFieldDescription(ISOComponent m, int fldNumber) Emits a description of the field identified byfldnoin the given message to the log event.byte[]pack(ISOComponent m) Packs an ISO-8583 message into a byte array.intunpack(ISOComponent m, byte[] b) Unpacks an ISO-8583 byte array into the given message container.voidunpack(ISOComponent m, InputStream in) Unpacks an ISO-8583 message from an input stream into the given container.Methods inherited from class Log
applyDefaultTags, createDebug, createDebug, createError, createError, createFatal, createFatal, createInfo, createInfo, createLogEvent, createLogEvent, createTrace, createTrace, createWarn, createWarn, debug, debug, error, error, fatal, fatal, getDefaultTags, getLog, getLogger, getRealm, info, info, removeDefaultTag, setDefaultTag, setDefaultTags, setLogger, setLogger, setRealm, trace, trace, warn, warnModifier and TypeMethodDescriptionprotected LogEventapplyDefaultTags(LogEvent evt) Decoratesevtwith thisLog's default tags, if any.Creates an empty debug-level event.createDebug(Object detail) Creates a debug-level event with the given payload.Creates an empty error-level event.createError(Object detail) Creates an error-level event with the given payload.Creates an empty fatal-level event.createFatal(Object detail) Creates a fatal-level event with the given payload.Creates an empty info-level event.createInfo(Object detail) Creates an info-level event with the given payload.createLogEvent(String level) Creates a newLogEventat the given level decorated with thisLog's default tags.createLogEvent(String level, Object detail) Creates a newLogEventat the given level with an initial payload.Creates an empty trace-level event.createTrace(Object detail) Creates a trace-level event with the given payload.Creates an empty warning-level event.createWarn(Object detail) Creates a warning-level event with the given payload.voidLogs a debug event with the given detail.voidLogs a debug event with the given detail and an additional payload.voidLogs an error event with the given detail.voidLogs an error event with the given detail and an additional payload.voidLogs a fatal event with the given detail.voidLogs a fatal event with the given detail and an additional payload.Returns an unmodifiable snapshot of the current default tags.static LogConvenience factory returning aLogbound to the given logger name and realm.Returns the underlying logger.getRealm()Returns the realm associated with events emitted through thisLog.voidLogs an info event with the given detail.voidLogs an info event with the given detail and an additional payload.voidremoveDefaultTag(String key) Removes a previously-registered default tag.voidsetDefaultTag(String key, String value) Sets a default tag on every event produced by thisLog; anullvalue removes the entry.voidsetDefaultTags(Map<String, String> tags) Replaces the entire set of default tags.voidReplaces the underlying logger, leaving the realm unchanged.voidReplaces the underlying logger and realm.voidReplaces the realm associated with emitted events.voidLogs a trace event with the given detail.voidLogs a trace event with the given detail and an additional payload.voidLogs a warning event with the given detail.voidLogs a warning event with the given detail and an additional payload.
-
Constructor Details
-
FSDPackager
public FSDPackager()Default constructor; no instance state to initialise.
-
-
Method Details
-
pack
Description copied from interface:ISOPackagerPacks an ISO-8583 message into a byte array.- Specified by:
packin interfaceISOPackager- Parameters:
m- the Component to pack- Returns:
- Message image
- Throws:
ISOException- on packing error
-
unpack
Description copied from interface:ISOPackagerUnpacks an ISO-8583 byte array into the given message container.- Specified by:
unpackin interfaceISOPackager- Parameters:
m- the Container of this messageb- ISO message image- Returns:
- consumed bytes
- Throws:
ISOException- on unpacking error
-
unpack
Description copied from interface:ISOPackagerUnpacks an ISO-8583 message from an input stream into the given container.- Specified by:
unpackin interfaceISOPackager- Parameters:
m- the containerin- the input stream- Throws:
ISOException- on unpacking error
-
getFieldDescription
Description copied from interface:ISOPackagerEmits a description of the field identified byfldnoin the given message to the log event.- Specified by:
getFieldDescriptionin interfaceISOPackager- Parameters:
m- the Container (i.e. an ISOMsg)fldNumber- the Field Number- Returns:
- Field Description
-
createISOMsg
Description copied from interface:ISOPackagerCreates and returns a new ISOMsg instance appropriate for this packager.- Specified by:
createISOMsgin interfaceISOPackager- Returns:
- a new ISOMsg
-
getDescription
Description copied from interface:ISOPackagerReturns a human-readable description of this packager.- Specified by:
getDescriptionin interfaceISOPackager- Returns:
- Packager's Description
-