use of br.com.caelum.restfulie.client.DefaultLinkConverter in project restfulie-java by caelum.
the class XmlMediaType method unmarshal.
public <T> T unmarshal(String content, RestClient client) {
XStream xstreamLocal = getXstream(client);
xstreamLocal.registerConverter(new DefaultLinkConverter(client));
xstreamLocal.registerConverter(new DefaultUrlConverter(client));
return (T) xstreamLocal.fromXML(content);
}
Aggregations