Search in sources :

Example 1 with DefaultLinkConverter

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);
}
Also used : DefaultLinkConverter(br.com.caelum.restfulie.client.DefaultLinkConverter) XStream(com.thoughtworks.xstream.XStream) DefaultUrlConverter(br.com.caelum.restfulie.opensearch.conveter.DefaultUrlConverter)

Aggregations

DefaultLinkConverter (br.com.caelum.restfulie.client.DefaultLinkConverter)1 DefaultUrlConverter (br.com.caelum.restfulie.opensearch.conveter.DefaultUrlConverter)1 XStream (com.thoughtworks.xstream.XStream)1