com.mypos.myposcheckout.ipc.response

 

Class BasicResponsePOSTDecoder

com.mypos.myposcheckout.ipc.response.BasicResponsePOSTDecoder
public final class BasicResponsePOSTDecoder
extends java.lang.Object
A class for decoding an API response in POST format (query string) into a key => value structure.

 

Constructor Summary

Constructors
Constructor and Description
BasicResponsePOSTDecoder() 

 

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

BasicResponsePOSTDecoder

public BasicResponsePOSTDecoder()

 

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