Table of Contents

Class ResponseUnmarshaller

Namespace
Amazon.Runtime.Internal.Transform
Assembly
AWSSDK.Core.dll

Abstract class for unmarshalling service responses.

public abstract class ResponseUnmarshaller : IResponseUnmarshaller<AmazonWebServiceResponse, UnmarshallerContext>, IUnmarshaller<AmazonWebServiceResponse, UnmarshallerContext>
Inheritance
ResponseUnmarshaller
Implements
Derived
Inherited Members

Constructors

ResponseUnmarshaller()

protected ResponseUnmarshaller()

Properties

HasStreamingProperty

public virtual bool HasStreamingProperty { get; }

Property Value

bool

Methods

ConstructUnmarshallerContext(Stream, bool, IWebResponseData, bool)

protected abstract UnmarshallerContext ConstructUnmarshallerContext(Stream responseStream, bool maintainResponseBody, IWebResponseData response, bool isException)

Parameters

responseStream Stream
maintainResponseBody bool
response IWebResponseData
isException bool

Returns

UnmarshallerContext

ConstructUnmarshallerContext(Stream, bool, IWebResponseData, bool, IRequestContext)

protected abstract UnmarshallerContext ConstructUnmarshallerContext(Stream responseStream, bool maintainResponseBody, IWebResponseData response, bool isException, IRequestContext requestContext)

Parameters

responseStream Stream
maintainResponseBody bool
response IWebResponseData
isException bool
requestContext IRequestContext

Returns

UnmarshallerContext

CreateContext(IWebResponseData, bool, Stream, RequestMetrics, bool)

public virtual UnmarshallerContext CreateContext(IWebResponseData response, bool readEntireResponse, Stream stream, RequestMetrics metrics, bool isException)

Parameters

response IWebResponseData
readEntireResponse bool
stream Stream
metrics RequestMetrics
isException bool

Returns

UnmarshallerContext

CreateContext(IWebResponseData, bool, Stream, RequestMetrics, bool, IRequestContext)

public virtual UnmarshallerContext CreateContext(IWebResponseData response, bool readEntireResponse, Stream stream, RequestMetrics metrics, bool isException, IRequestContext requestContext)

Parameters

response IWebResponseData
readEntireResponse bool
stream Stream
metrics RequestMetrics
isException bool
requestContext IRequestContext

Returns

UnmarshallerContext

GetDefaultErrorMessage<T>()

public static string GetDefaultErrorMessage<T>() where T : Exception

Returns

string

Type Parameters

T

ShouldReadEntireResponse(IWebResponseData, bool)

protected virtual bool ShouldReadEntireResponse(IWebResponseData response, bool readEntireResponse)

Parameters

response IWebResponseData
readEntireResponse bool

Returns

bool

Unmarshall(UnmarshallerContext)

public abstract AmazonWebServiceResponse Unmarshall(UnmarshallerContext input)

Parameters

input UnmarshallerContext

Returns

AmazonWebServiceResponse

UnmarshallException(UnmarshallerContext, Exception, HttpStatusCode)

public virtual AmazonServiceException UnmarshallException(UnmarshallerContext input, Exception innerException, HttpStatusCode statusCode)

Parameters

input UnmarshallerContext
innerException Exception
statusCode HttpStatusCode

Returns

AmazonServiceException

UnmarshallResponse(UnmarshallerContext)

public AmazonWebServiceResponse UnmarshallResponse(UnmarshallerContext context)

Parameters

context UnmarshallerContext

Returns

AmazonWebServiceResponse