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)
protected abstract UnmarshallerContext ConstructUnmarshallerContext(Stream responseStream, bool maintainResponseBody, IWebResponseData response)
Parameters
responseStream
StreammaintainResponseBody
boolresponse
IWebResponseData
Returns
CreateContext(IWebResponseData, bool, Stream, RequestMetrics)
public virtual UnmarshallerContext CreateContext(IWebResponseData response, bool readEntireResponse, Stream stream, RequestMetrics metrics)
Parameters
response
IWebResponseDatareadEntireResponse
boolstream
Streammetrics
RequestMetrics
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