use of br.com.caelum.restfulie.opensearch.conveter.DefaultUrlConverter in project restfulie-java by caelum.
the class OpenSearchTest method setUp.
@Before
public void setUp() {
xstream = new XStream();
xstream.registerConverter(new DefaultUrlConverter(Restfulie.custom()));
xstream.registerConverter(new DefaultTagsConveter());
xstream.processAnnotations(SearchDescription.class);
}
use of br.com.caelum.restfulie.opensearch.conveter.DefaultUrlConverter 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