@InternalExtensionOnly
public interface HttpResponseParser<MessageFormatT>
| Modifier and Type | Method and Description |
|---|---|
MessageFormatT |
parse(InputStream httpContent)
Parse the http body content JSON stream into the MessageFormatT.
|
String |
serialize(MessageFormatT response)
Serialize an object into an HTTP body, which is written out to output.
|
MessageFormatT parse(InputStream httpContent)
httpContent - the body of an HTTP responseRestSerializationException - if failed to parse the httpContent to a valid MessageFormatT@InternalApi String serialize(MessageFormatT response)
response - the object to serializeRestSerializationException - if failed to serialize response to a valid String representation