Class JsonProtocolUnmarshaller
- java.lang.Object
-
- software.amazon.awssdk.protocols.json.internal.unmarshall.JsonProtocolUnmarshaller
-
@ThreadSafe public class JsonProtocolUnmarshaller extends Object
Unmarshaller implementation for both JSON RPC and REST JSON services. This class is thread-safe and it is recommended to reuse a single instance for best performance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JsonProtocolUnmarshaller.Builder
Builder forJsonProtocolUnmarshaller
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonProtocolUnmarshaller.Builder
builder()
static DefaultJsonUnmarshallerRegistry
createSharedRegistry()
static DefaultProtocolUnmarshallDependencies
defaultProtocolUnmarshallDependencies()
static DefaultProtocolUnmarshallDependencies
newProtocolUnmarshallDependencies()
static JsonUnmarshallerRegistry
timestampFormatRegistryFactory(Map<MarshallLocation,TimestampFormatTrait.Format> formats)
Creates the defaultJsonProtocolUnmarshaller
, which parsesInstant
using the default formats passed in.<TypeT extends SdkPojo>
TypeTunmarshall(SdkPojo sdkPojo, SdkHttpFullResponse response)
<TypeT extends SdkPojo>
TypeTunmarshall(SdkPojo sdkPojo, SdkHttpFullResponse response, JsonNode jsonContent)
-
-
-
Method Detail
-
defaultProtocolUnmarshallDependencies
public static DefaultProtocolUnmarshallDependencies defaultProtocolUnmarshallDependencies()
-
newProtocolUnmarshallDependencies
public static DefaultProtocolUnmarshallDependencies newProtocolUnmarshallDependencies()
-
createSharedRegistry
public static DefaultJsonUnmarshallerRegistry createSharedRegistry()
-
unmarshall
public <TypeT extends SdkPojo> TypeT unmarshall(SdkPojo sdkPojo, SdkHttpFullResponse response) throws IOException
- Throws:
IOException
-
unmarshall
public <TypeT extends SdkPojo> TypeT unmarshall(SdkPojo sdkPojo, SdkHttpFullResponse response, JsonNode jsonContent)
-
builder
public static JsonProtocolUnmarshaller.Builder builder()
- Returns:
- New instance of
JsonProtocolUnmarshaller.Builder
.
-
timestampFormatRegistryFactory
public static JsonUnmarshallerRegistry timestampFormatRegistryFactory(Map<MarshallLocation,TimestampFormatTrait.Format> formats)
Creates the defaultJsonProtocolUnmarshaller
, which parsesInstant
using the default formats passed in.
-
-