Spring Data Core

org.springframework.data.domain.jaxb
Class PageAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<SpringDataJaxb.PageDto,Page<Object>>
      extended by 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

Constructor Summary
PageAdapter()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageAdapter

public PageAdapter()
Method Detail

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:

Spring Data Core

Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.