Class SQSMessagingClientUtil


  • public final class SQSMessagingClientUtil
    extends Object
    Includes utility classes to use when serializing property names to SQS message attribute names. SQS message attribute names accept limited set of characters, so if the property names include any characters that is not accepted, they can be serialized through these basic utility classes.
    • Constructor Detail

      • SQSMessagingClientUtil

        public SQSMessagingClientUtil()
    • Method Detail

      • serializePropertyName

        public static String serializePropertyName​(String name)
        Keeping alphabet, numeric characters, hyphens, underscores, or dots.

        Changes everything to underscores Unicode number underscores, e.g., (*attr* -> _42_attr_42_).

        Parameters:
        name - The name of the property to serialize.
        Returns:
        The serialized name
      • deserializePropertyName

        public static String deserializePropertyName​(String name)
        Changes everything from underscores Unicode number underscores back to original character, e.g., (_42_attr_42_ -> *attr*).
        Parameters:
        name - The name of the property to deserialize.
        Returns:
        The deserialized name