Class HeaderLinksResponseEntity<T extends RepresentationModel<?>>

java.lang.Object
org.springframework.http.HttpEntity<T>
org.springframework.http.ResponseEntity<T>
org.springframework.hateoas.server.core.HeaderLinksResponseEntity<T>

public class HeaderLinksResponseEntity<T extends RepresentationModel<?>> extends ResponseEntity<T>
Special ResponseEntity that exposes Link instances in the contained RepresentationModel as link headers instead of in the body. Note, that this class is not intended to be used directly from user code but by support code that will transparently invoke the header exposure. If you use this class from a controller directly, the Links will not be present in the RepresentationModel instance anymore when RepresentationModelProcessors kick in.
Author:
Oliver Gierke