Package org.springframework.data.web
Class PagedModel<T>
java.lang.Object
org.springframework.data.web.PagedModel<T>
DTO to build stable JSON representations of a Spring Data
Page
. It can either be selectively used in
controller methods by calling new PagedModel<>(page)
or generally activated as representation model for
PageImpl
instances by setting
EnableSpringDataWebSupport
's pageSerializationMode
to
EnableSpringDataWebSupport.PageSerializationMode.VIA_DTO
.- Since:
- 3.3
- Author:
- Oliver Drotbohm, Greg Turnquist
-
Nested Class Summary
-
Constructor Summary
-
Method Summary