Class SimpleJsonResponseParser
java.lang.Object
io.continual.onap.services.mrCommon.SimpleJsonResponseParser
- All Implemented Interfaces:
JsonResponseParser
This is a basic implementation that parses a response JSON array of strings
into a list of strings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidparseResponseBody(String s, OnapMrFetchResponse resp) Parse the string representation of a response body into the fetch response instance.
Note: This method is only called by the ResponseBody version above.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.continual.onap.services.mrCommon.JsonResponseParser
parseResponseBody
-
Constructor Details
-
SimpleJsonResponseParser
public SimpleJsonResponseParser()
-
-
Method Details
-
parseResponseBody
Description copied from interface:JsonResponseParserParse the string representation of a response body into the fetch response instance.
Note: This method is only called by the ResponseBody version above. If you override that, this method does not need to be implemented beyond meeting the compiler requirement.- Specified by:
parseResponseBodyin interfaceJsonResponseParser- Parameters:
s- the http body as a stringresp- the fetch response to populate- Throws:
IOException- if reading the body throws an IOException
-