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:
			ClassUtils.isPresent("com.fasterxml.jackson.databind.ObjectMapper", AllEncompassingFormHttpMessageConverter.class.getClassLoader()) &&
					ClassUtils.isPresent("com.fasterxml.jackson.core.JsonGenerator", AllEncompassingFormHttpMessageConverter.class.getClassLoader());
 
 
	public AllEncompassingFormHttpMessageConverter() { 
		addPartConverter(new SourceHttpMessageConverter<Source>());
		if (jaxb2Present) {
			addPartConverter(new Jaxb2RootElementHttpMessageConverter());
		} 
		if (jackson2Present) {
			addPartConverter(new MappingJackson2HttpMessageConverter());
		} 
	} 
 
} 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
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
Connect your IDE to all the code out there  Get Codota for Java
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
Connect your IDE to all the code out there  Get Codota for Java