Package com.pdfgate
Class PdfGateEnvelopeResponseParserCallback
java.lang.Object
com.pdfgate.PdfGateResponseParserCallback<PDFGateEnvelope>
com.pdfgate.PdfGateEnvelopeResponseParserCallback
- All Implemented Interfaces:
okhttp3.Callback
public class PdfGateEnvelopeResponseParserCallback
extends PdfGateResponseParserCallback<PDFGateEnvelope>
Parses JSON responses into
PDFGateEnvelope instances.-
Field Summary
Fields inherited from class com.pdfgate.PdfGateResponseParserCallback
callback -
Constructor Summary
ConstructorsConstructorDescriptionCreates a response parser callback for envelope payloads. -
Method Summary
Modifier and TypeMethodDescriptionparseResponse(okhttp3.Response response) Parses the HTTP response into the expected payload type.Methods inherited from class com.pdfgate.PdfGateResponseParserCallback
onFailure, onResponse
-
Constructor Details
-
PdfGateEnvelopeResponseParserCallback
Creates a response parser callback for envelope payloads.- Parameters:
callback- callback invoked with parsed responses.
-
-
Method Details
-
parseResponse
Description copied from class:PdfGateResponseParserCallbackParses the HTTP response into the expected payload type.- Specified by:
parseResponsein classPdfGateResponseParserCallback<PDFGateEnvelope>- Parameters:
response- HTTP response to parse.- Returns:
- the parsed response payload.
- Throws:
IOException- when parsing fails.
-