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
responseStream
StreammaintainResponseBody
boolresponse
IWebResponseDataisException
bool
Returns
ConstructUnmarshallerContext(Stream, bool, IWebResponseData, bool, IRequestContext)
protected abstract UnmarshallerContext ConstructUnmarshallerContext(Stream responseStream, bool maintainResponseBody, IWebResponseData response, bool isException, IRequestContext requestContext)
Parameters
responseStream
StreammaintainResponseBody
boolresponse
IWebResponseDataisException
boolrequestContext
IRequestContext
Returns
CreateContext(IWebResponseData, bool, Stream, RequestMetrics, bool)
public virtual UnmarshallerContext CreateContext(IWebResponseData response, bool readEntireResponse, Stream stream, RequestMetrics metrics, bool isException)
Parameters
response
IWebResponseDatareadEntireResponse
boolstream
Streammetrics
RequestMetricsisException
bool
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
response
IWebResponseDatareadEntireResponse
boolstream
Streammetrics
RequestMetricsisException
boolrequestContext
IRequestContext
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
response
IWebResponseDatareadEntireResponse
bool
Returns
Unmarshall(UnmarshallerContext)
public abstract AmazonWebServiceResponse Unmarshall(UnmarshallerContext input)
Parameters
input
UnmarshallerContext
Returns
UnmarshallException(UnmarshallerContext, Exception, HttpStatusCode)
public virtual AmazonServiceException UnmarshallException(UnmarshallerContext input, Exception innerException, HttpStatusCode statusCode)
Parameters
input
UnmarshallerContextinnerException
ExceptionstatusCode
HttpStatusCode
Returns
UnmarshallResponse(UnmarshallerContext)
public AmazonWebServiceResponse UnmarshallResponse(UnmarshallerContext context)
Parameters
context
UnmarshallerContext