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) |
public SpringDataJaxb.PageDto marshal(Page<Object> source)
marshal
in class XmlAdapter<SpringDataJaxb.PageDto,Page<Object>>
public Page<Object> unmarshal(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-2014-2014 Pivotal. All Rights Reserved.