Class ResponseUnmarshaller
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
Methods
ConstructUnmarshallerContext(Stream, bool, IWebResponseData, bool)
protected abstract UnmarshallerContext ConstructUnmarshallerContext(Stream responseStream, bool maintainResponseBody, IWebResponseData response, bool isException)
Parameters
responseStreamStreammaintainResponseBodyboolresponseIWebResponseDataisExceptionbool
Returns
ConstructUnmarshallerContext(Stream, bool, IWebResponseData, bool, IRequestContext)
protected abstract UnmarshallerContext ConstructUnmarshallerContext(Stream responseStream, bool maintainResponseBody, IWebResponseData response, bool isException, IRequestContext requestContext)
Parameters
responseStreamStreammaintainResponseBodyboolresponseIWebResponseDataisExceptionboolrequestContextIRequestContext
Returns
CreateContext(IWebResponseData, bool, Stream, RequestMetrics, bool)
public virtual UnmarshallerContext CreateContext(IWebResponseData response, bool readEntireResponse, Stream stream, RequestMetrics metrics, bool isException)
Parameters
responseIWebResponseDatareadEntireResponseboolstreamStreammetricsRequestMetricsisExceptionbool
Returns
CreateContext(IWebResponseData, bool, Stream, RequestMetrics, bool, IRequestContext)
public virtual UnmarshallerContext CreateContext(IWebResponseData response, bool readEntireResponse, Stream stream, RequestMetrics metrics, bool isException, IRequestContext requestContext)
Parameters
responseIWebResponseDatareadEntireResponseboolstreamStreammetricsRequestMetricsisExceptionboolrequestContextIRequestContext
Returns
GetDefaultErrorMessage<T>()
public static string GetDefaultErrorMessage<T>() where T : Exception
Returns
Type Parameters
T
ShouldReadEntireResponse(IWebResponseData, bool)
protected virtual bool ShouldReadEntireResponse(IWebResponseData response, bool readEntireResponse)
Parameters
responseIWebResponseDatareadEntireResponsebool
Returns
Unmarshall(UnmarshallerContext)
public abstract AmazonWebServiceResponse Unmarshall(UnmarshallerContext input)
Parameters
inputUnmarshallerContext
Returns
UnmarshallException(UnmarshallerContext, Exception, HttpStatusCode)
public virtual AmazonServiceException UnmarshallException(UnmarshallerContext input, Exception innerException, HttpStatusCode statusCode)
Parameters
inputUnmarshallerContextinnerExceptionExceptionstatusCodeHttpStatusCode
Returns
UnmarshallResponse(UnmarshallerContext)
public AmazonWebServiceResponse UnmarshallResponse(UnmarshallerContext context)
Parameters
contextUnmarshallerContext