com.mypos.myposcheckout.ipc.response
Class ComplexResponseXMLDecoder
com.mypos.myposcheckout.ipc.response.ComplexResponseXMLDecoder
public final class ComplexResponseXMLDecoder
extends java.lang.Object
Decodes the complex (multi level key => value pairs) APIresponses in XML format. Such responses can be returned as an answer to the "IPCGetTxnStatus" and "IPCGetTxnLog" calls.
Constructor Summary
Constructor and Description |
---|
ComplexResponseXMLDecoder() |
Method Summary
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
ComplexResponseXMLDecoder
public ComplexResponseXMLDecoder()
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.