public interface SwiftSupport
Modifier and Type | Method and Description |
---|---|
String |
getFieldValue(Message msg,
String field)
Gets the value of the given field or null if that field is not found.
|
String[] |
getFieldValues(Message msg,
String field)
Gets all values for a given field.
|
void |
validateMessage(Message msg,
boolean networkRulesEnable)
Validates the original Swift MT message in the payload including its headers.
|
boolean |
validateMessageBlock4(String block4,
int messageType,
boolean enableNetworkRulesValidation)
Method which validates only the block 4 of a Swift MT message.
|
void |
validateMessageWithType(Message msg,
boolean networkRulesEnable,
int messageType)
Validates the original Swift MT message in the payload including its headers.
|
void validateMessage(Message msg, boolean networkRulesEnable)
msg
- Message passing through the UltraESB which contains a
org.adroitlogic.ultraesb.core.format.SwiftMTMessage as its payload.networkRulesEnable
- boolean which indicates whether NetworkRulesValidation should be carried out or not
for the swift message.org.adroitlogic.utraswift.validation.ValidationError
- When message validation is failed due to syntax or semantic errororg.adroitlogic.utraswift.validation.network.NetworkRulesViolation
- When message validation is failed due to a network rules violation of the message type (only when
network rules validation is enabled)void validateMessageWithType(Message msg, boolean networkRulesEnable, int messageType)
msg
- Message passing through the UltraESB which contains a
org.adroitlogic.ultraesb.core.format.SwiftMTMessage as a its payload.networkRulesEnable
- boolean which indicates whether NetworkRulesValidation should be carried out or not
for the swift message.messageType
- Type of the Swift message. e.g: 100, 564, 103org.adroitlogic.utraswift.validation.ValidationError
- When message validation is failed due to syntax or semantic errororg.adroitlogic.utraswift.validation.network.NetworkRulesViolation
- When message validation is failed due to a network rules violation of the message type (only when
network rules validation is enabled)boolean validateMessageBlock4(String block4, int messageType, boolean enableNetworkRulesValidation)
block4
- a String which contains the block 4 of a Swift MT message.messageType
- Type of the Swift message. e.g: 100, 564, 103enableNetworkRulesValidation
- boolean which indicates whether NetworkRulesValidation should be carried
out or not for the swift message.org.adroitlogic.utraswift.validation.ValidationError
- When block 4 validation is failed due to syntax or semantic errororg.adroitlogic.utraswift.validation.network.NetworkRulesViolation
- When block 4 validation is failed due to a network rules violation of the message type (only when
network rules validation is enabled)String getFieldValue(Message msg, String field)
msg
- Message passing through the UltraESB which contains the
org.adroitlogic.ultraesb.core.format.SwiftMTMessage as its payloadfield
- a String which contains the name of a field (case sensitive) within the block 4 of a swift message.
e.g: 97A, 13B, 35BIllegalArgumentException
- if parameter field is nullString[] getFieldValues(Message msg, String field)
msg
- Message passing through the UltraESB which contains the
org.adroitlogic.ultraesb.core.format.SwiftMTMessage as its payload.field
- a String which contains the name of a field (case sensitive) within the block 4 of a swift message.
e.g: 97A, 13B, 35BIllegalArgumentException
- if parameter field is nullCopyright © 2010–2016 AdroitLogic. All rights reserved.