All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.springframework.content.rest.config.HypermediaConfiguration Maven / Gradle / Ivy

There is a newer version: 3.0.15
Show newest version
package org.springframework.content.rest.config;

import internal.org.springframework.content.rest.links.ContentLinksResourceProcessor;
import internal.org.springframework.content.rest.mappingcontext.RequestMappingToLinkrelMappingContext;
import org.springframework.content.commons.mappingcontext.MappingContext;
import org.springframework.content.commons.storeservice.Stores;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.data.rest.webmvc.PersistentEntityResource;
import org.springframework.hateoas.server.RepresentationModelProcessor;

@Configuration
@Import(RestConfiguration.class)
public class HypermediaConfiguration {

	@Bean
	public RepresentationModelProcessor contentLinksProcessor(Stores stores, RestConfiguration config, MappingContext mappingContext, RequestMappingToLinkrelMappingContext linkrelMappingContext) {
		return new ContentLinksResourceProcessor(stores, config, mappingContext, linkrelMappingContext);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy