You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tylertreat edited this page Jan 17, 2013
·
2 revisions
A MessageConverter is used by RestfulMappingClient to convert REST responses into objects. Infinitum provides several implementations including GsonMessageConverter, SimpleXmlMessageConverter, and JacksonMessageConverter.
The interface has one method, convert, which takes a Class and RestResponse. This methods converts the RestResponse into an instance of the given Class.
MessageConverter Example
The example below shows how GsonMessageConverter is implemented.