Class DefaultJsonContentTypeResolver
java.lang.Object
software.amazon.awssdk.protocols.json.DefaultJsonContentTypeResolver
- All Implemented Interfaces:
JsonContentTypeResolver
@SdkProtectedApi
public class DefaultJsonContentTypeResolver
extends Object
implements JsonContentTypeResolver
Prefers an explicit content type if provided. Otherwise computes the correct content type based
on the wire format used and the version of the protocol.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveContentType(AwsJsonProtocolMetadata protocolMetadata) Computes content type to send in requests.
-
Constructor Details
-
DefaultJsonContentTypeResolver
-
-
Method Details
-
resolveContentType
Description copied from interface:JsonContentTypeResolverComputes content type to send in requests.- Specified by:
resolveContentTypein interfaceJsonContentTypeResolver- Parameters:
protocolMetadata- Metadata about the protocol.- Returns:
- Correct content type to send in request based on metadata about the client.
-