Class SimpleJsonResponseParser
- java.lang.Object
-
- io.continual.onap.services.mrCommon.SimpleJsonResponseParser
-
- All Implemented Interfaces:
JsonResponseParser
public class SimpleJsonResponseParser extends Object implements JsonResponseParser
This is a basic implementation that parses a response JSON array of strings into a list of strings.
-
-
Constructor Summary
Constructors Constructor Description SimpleJsonResponseParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidparseResponseBody(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, wait
-
Methods inherited from interface io.continual.onap.services.mrCommon.JsonResponseParser
parseResponseBody
-
-
-
-
Method Detail
-
parseResponseBody
public void parseResponseBody(String s, OnapMrFetchResponse resp) throws IOException
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
-
-