org.springframework.data.domain.jaxb
Class PageAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<SpringDataJaxb.PageDto,Page<Object>>
org.springframework.data.domain.jaxb.PageAdapter
public class PageAdapter
- extends XmlAdapter<SpringDataJaxb.PageDto,Page<Object>>
XmlAdapter
to convert Page
instances into SpringDataJaxb.PageDto
instances and vice versa.
- Author:
- Oliver Gierke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageAdapter
public PageAdapter()
marshal
public SpringDataJaxb.PageDto marshal(Page<Object> source)
throws Exception
- Specified by:
marshal
in class XmlAdapter<SpringDataJaxb.PageDto,Page<Object>>
- Throws:
Exception
unmarshal
public Page<Object> unmarshal(SpringDataJaxb.PageDto v)
throws Exception
- Specified by:
unmarshal
in class XmlAdapter<SpringDataJaxb.PageDto,Page<Object>>
- Throws:
Exception
getLinks
protected List<org.springframework.hateoas.Link> getLinks(Page<?> source)
- Return additional links that shall be added to the
SpringDataJaxb.PageDto
.
- Parameters:
source
- the source Page
.
- Returns:
Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.