Class CMFConverter
java.lang.Object
org.jpos.rc.CMFConverter
- All Implemented Interfaces:
Configurable, IRCConverter
Converts between
CMF result codes and ISO response codes.-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Creates a CMFConverter using the given configuration. -
Method Summary
Modifier and TypeMethodDescriptionConverts an IRC to an RC (response code).Converts an RC to an IRC.voidConfigures this object with the suppliedConfiguration.
-
Constructor Details
-
CMFConverter
public CMFConverter()Default constructor. -
CMFConverter
Creates a CMFConverter using the given configuration.- Parameters:
cfg- the configuration mapping IRC codes to RC values
-
-
Method Details
-
convert
Description copied from interface:IRCConverterConverts an IRC to an RC (response code).- Specified by:
convertin interfaceIRCConverter- Parameters:
irc- the IRC to convert- Returns:
- the corresponding RC
-
convert
Description copied from interface:IRCConverterConverts an RC to an IRC.- Specified by:
convertin interfaceIRCConverter- Parameters:
rc- the RC to convert- Returns:
- the corresponding IRC
-
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
-