public class PageAdapter extends XmlAdapter<SpringDataJaxb.PageDto,Page<Object>>
Constructor and Description |
---|
PageAdapter() |
Modifier and Type | Method and Description |
---|---|
protected List<org.springframework.hateoas.Link> |
getLinks(Page<?> source)
Return additional links that shall be added to the
SpringDataJaxb.PageDto . |
SpringDataJaxb.PageDto |
marshal(Page<Object> source) |
Page<Object> |
unmarshal(SpringDataJaxb.PageDto v) |
@Nullable public SpringDataJaxb.PageDto marshal(@Nullable Page<Object> source)
marshal
in class XmlAdapter<SpringDataJaxb.PageDto,Page<Object>>
@Nullable public Page<Object> unmarshal(@Nullable SpringDataJaxb.PageDto v)
unmarshal
in class XmlAdapter<SpringDataJaxb.PageDto,Page<Object>>
protected List<org.springframework.hateoas.Link> getLinks(Page<?> source)
SpringDataJaxb.PageDto
.source
- the source Page
.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.