Class JsonResponseUnmarshaller
Class for unmarshalling JSON service responses.
public abstract class JsonResponseUnmarshaller : ResponseUnmarshaller, IResponseUnmarshaller<AmazonWebServiceResponse, UnmarshallerContext>, IUnmarshaller<AmazonWebServiceResponse, UnmarshallerContext>
- Inheritance
-
JsonResponseUnmarshaller
- Implements
- Inherited Members
Constructors
JsonResponseUnmarshaller()
protected JsonResponseUnmarshaller()
Methods
ConstructUnmarshallerContext(Stream, bool, IWebResponseData, bool)
protected override UnmarshallerContext ConstructUnmarshallerContext(Stream responseStream, bool maintainResponseBody, IWebResponseData response, bool isException)
Parameters
responseStreamStreammaintainResponseBodyboolresponseIWebResponseDataisExceptionbool
Returns
ConstructUnmarshallerContext(Stream, bool, IWebResponseData, bool, IRequestContext)
protected override UnmarshallerContext ConstructUnmarshallerContext(Stream responseStream, bool maintainResponseBody, IWebResponseData response, bool isException, IRequestContext requestContext)
Parameters
responseStreamStreammaintainResponseBodyboolresponseIWebResponseDataisExceptionboolrequestContextIRequestContext
Returns
ShouldReadEntireResponse(IWebResponseData, bool)
protected override bool ShouldReadEntireResponse(IWebResponseData response, bool readEntireResponse)
Parameters
responseIWebResponseDatareadEntireResponsebool
Returns
Unmarshall(JsonUnmarshallerContext)
public abstract AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext input)
Parameters
inputJsonUnmarshallerContext
Returns
Unmarshall(UnmarshallerContext)
public override AmazonWebServiceResponse Unmarshall(UnmarshallerContext input)
Parameters
inputUnmarshallerContext
Returns
UnmarshallException(JsonUnmarshallerContext, Exception, HttpStatusCode)
public abstract AmazonServiceException UnmarshallException(JsonUnmarshallerContext input, Exception innerException, HttpStatusCode statusCode)
Parameters
inputJsonUnmarshallerContextinnerExceptionExceptionstatusCodeHttpStatusCode
Returns
UnmarshallException(UnmarshallerContext, Exception, HttpStatusCode)
public override AmazonServiceException UnmarshallException(UnmarshallerContext input, Exception innerException, HttpStatusCode statusCode)
Parameters
inputUnmarshallerContextinnerExceptionExceptionstatusCodeHttpStatusCode