Class DefaultSnsMessageManager
java.lang.Object
software.amazon.awssdk.messagemanager.sns.internal.DefaultSnsMessageManager
- All Implemented Interfaces:
AutoCloseable,SnsMessageManager,SdkAutoCloseable
@SdkInternalApi
public final class DefaultSnsMessageManager
extends Object
implements SnsMessageManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awssdk.messagemanager.sns.SnsMessageManager
SnsMessageManager.Builder -
Method Summary
Modifier and TypeMethodDescriptionstatic SnsMessageManager.Builderbuilder()voidclose()Close thisSnsMessageManager, releasing any resources it owned.parseMessage(InputStream message) Parses and validates an SNS message from a stream.parseMessage(String message) Parses and validates an SNS message from a string.
-
Method Details
-
parseMessage
Description copied from interface:SnsMessageManagerParses and validates an SNS message from a stream.This method reads the JSON message payload, validates the signature, returns a parsed SNS message object with all message attributes if validation succeeds.
- Specified by:
parseMessagein interfaceSnsMessageManager- Parameters:
message- The binary stream representation of the SNS message.- Returns:
- The parsed SNS message.
-
parseMessage
Description copied from interface:SnsMessageManagerParses and validates an SNS message from a string.This method reads the JSON message payload, validates the signature, returns a parsed SNS message object with all message attributes if validation succeeds.
- Specified by:
parseMessagein interfaceSnsMessageManager- Parameters:
message- The string representation of the SNS message.- Returns:
- the parsed SNS message.
-
close
public void close()Description copied from interface:SnsMessageManagerClose thisSnsMessageManager, releasing any resources it owned.Note: if you provided your own
SdkHttpClient, you must close it separately.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSdkAutoCloseable- Specified by:
closein interfaceSnsMessageManager
-
builder
-