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 Constructor Description DefaultJsonContentTypeResolver(String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringresolveContentType(AwsJsonProtocolMetadata protocolMetadata)Computes content type to send in requests.
-
-
-
Constructor Detail
-
DefaultJsonContentTypeResolver
public DefaultJsonContentTypeResolver(String prefix)
-
-
Method Detail
-
resolveContentType
public String resolveContentType(AwsJsonProtocolMetadata protocolMetadata)
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.
-
-