Class SQSMessagingClientUtil
java.lang.Object
com.amazon.sqs.javamessaging.util.SQSMessagingClientUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Changes everything from underscores Unicode number underscores back to original character, e.g., (_42_attr_42_ -> *attr*).static String
serializePropertyName
(String name) Keeping alphabet, numeric characters, hyphens, underscores, or dots.
-
Constructor Details
-
SQSMessagingClientUtil
public SQSMessagingClientUtil()
-
-
Method Details
-
serializePropertyName
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
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
-