Interface MetadataReformatter
- All Known Implementing Classes:
Base64DecodeMetadataService
,Base64EncodeMetadataService
,Base64MetadataService
,HexToStringService
,MetadataHashingService
,MetadataValueEscapeDoubleQuote
,MetadataValueEscapeSingleQuote
,MetadataValueToLowerCase
,MetadataValueToUpperCase
,ReformatDateService
,ReformatMetadata
,ReplaceMetadataValue
,StringToHexService
,TrimMetadataService
,UrlDecodeMetadataService
,UrlEncodeMetadataService
public interface MetadataReformatter
Interface that handles metadata reformatting.
- Since:
- 3.8.1
- API Note:
ReformatMetadata
which will always invoke thereformat(String, AdaptrisMessage)
variant which by default delegates immediately toreformat(String, String)
. If you are simple reformatter, then you only need to implementreformat(String, String)
-
Method Summary
-
Method Details
-
reformat
Reformat a metadata value- Parameters:
s
- the string to reformatmsgCharset
- the charset of the message- Returns:
- the replacment string.
- Throws:
Exception
- Implementation Note:
- The default implementation simply returns the input string.
-
reformat
Reformat a metadata value- Parameters:
s
- the string to reformatmsg
- the current Mesage.- Returns:
- the replacment string.
- Throws:
Exception
- Implementation Note:
- The default implementation calls
reformat(String, String)
withInterlokMessage.getContentEncoding()
.
-