com.mypos.myposcheckout.ipc.response

 

Class BasicResponseJSONDecoder

com.mypos.myposcheckout.ipc.response.BasicResponseJSONDecoder

public class BasicResponseJSONDecoder
extends java.lang.Object
A class for decoding an API response in JSON format into a key => value structure.

 

Constructor Summary

Constructors
Constructor and Description
BasicResponseJSONDecoder() 

 

Method Summary

All MethodsStatic MethodsConcrete Methods
Modifier and Type Method and Description
static java.util.Map<java.lang.String,java.lang.String> decodeResponse(java.lang.String rawResponse)
Decode the raw data into a key => value structure.

 

Methods inherited from class java.lang.Object

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

 

Constructor Detail

BasicResponseJSONDecoder

public BasicResponseJSONDecoder()

 

Method Detail

decodeResponse

public static java.util.Map<java.lang.String,java.lang.String> decodeResponse(java.lang.String rawResponse)
                                                                       throws IPCException
Decode the raw data into a key => value structure.
Parameters:
rawResponse - the raw API response
Returns:
the decoded response
Throws:
IPCException - if it fails to decode the response