@Test public void shouldUseTheDefaultConverterForTypesThatAreNotHypermediaAware() { RestfulSerializationJSON serialization = new RestfulSerializationJSON(null, null, null, null, null, XStreamBuilderImpl.cleanInstance()); XStream xstream = serialization.getXStream(); Converter converter = xstream.getConverterLookup().lookupConverterForType(CustomNonHMType.class); assertThat(converter.getClass(), is(typeCompatibleWith(ReflectionConverter.class))); }
@Override protected XStream getXStream() { XStream xStream = super.getXStream(); MethodValueSupportConverter converter = new MethodValueSupportConverter(new ReflectionConverter(xStream.getMapper(), xStream.getReflectionProvider())); xStream.registerConverter(new LinkConverterJSON(converter, restfulie, config)); return xStream; }
RestfulSerializationJSON extends XStreamJSONSerialization { @Override protected XStream getXStream() { XStream xStream = super.getXStream(); MethodValueSupportConverter converter = new MethodValueSupportConverter(new ReflectionConverter(xStream.getMapper(), xStream.getReflectionProvider())); xStream.registerConverter(new LinkConverterJSON(converter, restfulie, config)); return xStream; } }
RestfulSerializationJSON extends XStreamJSONSerialization { @Override protected XStream getXStream() { XStream xStream = super.getXStream(); MethodValueSupportConverter converter = new MethodValueSupportConverter(new ReflectionConverter(xStream.getMapper(), xStream.getReflectionProvider())); xStream.registerConverter(new LinkConverterJSON(converter, restfulie, config)); return xStream; } RestfulSerializationJSON(HttpServletResponse response, TypeNameExtractor extractor, Restfulie restfulie, Configuration config, ProxyInitializer initializer, XStreamBuilder builder); }
RestfulSerializationJSON extends XStreamJSONSerialization { @Override protected XStream getXStream() { XStream xStream = super.getXStream(); MethodValueSupportConverter converter = new MethodValueSupportConverter(new ReflectionConverter(xStream.getMapper(), xStream.getReflectionProvider())); xStream.registerConverter(new LinkConverterJSON(converter, restfulie, config)); return xStream; } RestfulSerializationJSON(HttpServletResponse response, TypeNameExtractor extractor, Restfulie restfulie, Configuration config, ProxyInitializer initializer, XStreamBuilder builder);  }
RestfulSerializationJSON extends XStreamJSONSerialization { @Override protected XStream getXStream() { XStream xStream = super.getXStream(); MethodValueSupportConverter converter = new MethodValueSupportConverter(new ReflectionConverter(xStream.getMapper(), xStream.getReflectionProvider())); xStream.registerConverter(new LinkConverterJSON(converter, restfulie, config)); return xStream; } RestfulSerializationJSON(HttpServletResponse response, TypeNameExtractor extractor, Restfulie restfulie, Configuration config, ProxyInitializer initializer, XStreamBuilder builder);   }