public interface JsonResponseParser
| Modifier and Type | Method and Description |
|---|---|
default void |
parseResponseBody(okhttp3.ResponseBody httpBody,
OnapMrFetchResponse fetchResponse)
Parse the okhttp response body into the fetch response instance.
|
void |
parseResponseBody(String httpBody,
OnapMrFetchResponse fetchResponse)
Parse the string representation of a response body into the fetch response instance.
Note: This method is only called by the ResponseBody version above. |
default void parseResponseBody(okhttp3.ResponseBody httpBody,
OnapMrFetchResponse fetchResponse)
throws IOException
httpBody - the okhttp response bodyfetchResponse - the fetch response to populateIOException - if reading the body throws an IOExceptionvoid parseResponseBody(String httpBody, OnapMrFetchResponse fetchResponse) throws IOException
httpBody - the http body as a stringfetchResponse - the fetch response to populateIOException - if reading the body throws an IOExceptionCopyright © 2023 continual.io. All rights reserved.