internal.org.springframework.content.rest.utils.ControllerUtils Maven / Gradle / Ivy
package internal.org.springframework.content.rest.utils;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.rest.webmvc.PersistentEntityResourceAssembler;
import org.springframework.data.web.PagedResourcesAssembler;
import org.springframework.hateoas.CollectionModel;
import org.springframework.hateoas.EntityModel;
import org.springframework.hateoas.Link;
import org.springframework.hateoas.server.core.EmbeddedWrappers;
import org.springframework.web.servlet.support.ServletUriComponentsBuilder;
public final class ControllerUtils {
private static final EmbeddedWrappers WRAPPERS = new EmbeddedWrappers(false);
private ControllerUtils() {}
protected static CollectionModel> entitiesToResources(Page
© 2015 - 2025 Weber Informatics LLC | Privacy Policy