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
responseStream
StreammaintainResponseBody
boolresponse
IWebResponseDataisException
bool
Returns
ConstructUnmarshallerContext(Stream, bool, IWebResponseData, bool, IRequestContext)
protected override UnmarshallerContext ConstructUnmarshallerContext(Stream responseStream, bool maintainResponseBody, IWebResponseData response, bool isException, IRequestContext requestContext)
Parameters
responseStream
StreammaintainResponseBody
boolresponse
IWebResponseDataisException
boolrequestContext
IRequestContext
Returns
ShouldReadEntireResponse(IWebResponseData, bool)
protected override bool ShouldReadEntireResponse(IWebResponseData response, bool readEntireResponse)
Parameters
response
IWebResponseDatareadEntireResponse
bool
Returns
Unmarshall(JsonUnmarshallerContext)
public abstract AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext input)
Parameters
input
JsonUnmarshallerContext
Returns
Unmarshall(UnmarshallerContext)
public override AmazonWebServiceResponse Unmarshall(UnmarshallerContext input)
Parameters
input
UnmarshallerContext
Returns
UnmarshallException(JsonUnmarshallerContext, Exception, HttpStatusCode)
public abstract AmazonServiceException UnmarshallException(JsonUnmarshallerContext input, Exception innerException, HttpStatusCode statusCode)
Parameters
input
JsonUnmarshallerContextinnerException
ExceptionstatusCode
HttpStatusCode
Returns
UnmarshallException(UnmarshallerContext, Exception, HttpStatusCode)
public override AmazonServiceException UnmarshallException(UnmarshallerContext input, Exception innerException, HttpStatusCode statusCode)
Parameters
input
UnmarshallerContextinnerException
ExceptionstatusCode
HttpStatusCode