com.mypos.myposcheckout.ipc.response

 

Class ComplexResponseJSONDecoder

java.lang.Objectcom.mypos.myposcheckout.ipc.response.ComplexResponseJSONDecoder


public final class ComplexResponseJSONDecoder
extends java.lang.Object
Decodes the complex (multi level key => value pairs) APIresponses in JSON format. Such responses can be returned as an answer to the "IPCGetTxnStatus" and "IPCGetTxnLog" calls. Requires the Jackson library. https://github.com/FasterXML/jackson

 

Constructor Summary

Constructors
Constructor and Description
ComplexResponseJSONDecoder() 

 

Method Summary

All MethodsStatic MethodsConcrete Methods
Modifier and Type Method and Description
static ResponseNode<java.lang.String,java.lang.String> decodeResponse(java.lang.String rawResponse)
Decodes the raw API response into a ResponseNode object.

 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ComplexResponseJSONDecoder

public ComplexResponseJSONDecoder()

 

Method Detail

decodeResponse

public static ResponseNode<java.lang.String,java.lang.String> decodeResponse(java.lang.String rawResponse)
                                                                      throws IPCException
Decodes the raw API response into a ResponseNode object.
Parameters:
rawResponse - the raw API response
Returns:
the decoded response
Throws:
IPCException - If the API response could not be decoded.