Spring Framework SourceHttpMessageConverter - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework SourceHttpMessageConverter class.

This code example shows how to use the following methods:
This code example shows how to use the following methods:
This code example shows how to use the following methods:
	private HttpMessageConverter<?>[] getMessageConverters() { 
		HttpMessageConverter<?>[] converters = new HttpMessageConverter<?>[]{ 
				new ByteArrayHttpMessageConverter(), 
				new StringHttpMessageConverter(), 
				new ResourceHttpMessageConverter(), 
				new SourceHttpMessageConverter(), 
				new XmlAwareFormHttpMessageConverter(), 
 
		}; 
		return converters; 
 
	} 
 
 
	/* 
	@Bean 
	public ConfigurableWebBindingInitializer configurableWebBindingInitializer() { 
		ConfigurableWebBindingInitializer bi = new ConfigurableWebBindingInitializer(); 
		 
		return bi; 
5
CodeRank
This code example shows how to use the following methods:
    @Override 
    protected List<HttpMessageConverter<?>> getMessageConverters()
    { 
        List<HttpMessageConverter<?>> messageConverters = super.getMessageConverters();
        messageConverters.add(new ByteArrayHttpMessageConverter());
        messageConverters.add(new SourceHttpMessageConverter<Source>());
        messageConverters.add(new JaxbHttpMessageConverter("org.alfresco.repo.publishing.flickr.springsocial.api.impl.xml"));
        return messageConverters;
    } 
 
    // private helpers 
    private void initialize() 
    { 
        getRestTemplate().setErrorHandler(new FlickrErrorHandler()); 
        // Wrap the request factory with a BufferingClientHttpRequestFactory so 
        // that the error handler can do repeat reads on the response.getBody() 
        super.setRequestFactory(ClientHttpRequestFactorySelector.bufferRequests(getRestTemplate().getRequestFactory())); 
        initSubApis(); 
    } 
 
4
CodeRank