com.sage.orion.sdata.servlet
Class PagingInfo
java.lang.Object
com.sage.orion.sdata.servlet.PagingInfo
- Direct Known Subclasses:
- IndexedPagingInfo, KeyedPagingInfo, SDataExternalPagingInfo
public abstract class PagingInfo
- extends java.lang.Object
An interface responsible for helping out in creating paging links.
This sits between the ResourceKindImpl and the ResponseGenerator.
The ResourceKindImpl knows the data that it is placing into the PagingInfo.
It knows if it understands indexed paging or only query-based paging. It
knows if it can get the number of records for a Last link or not. Etc.
However it does not know what a URL looks like; that is why we have a
marshaling layer.
The ResponseGenerator is part of the marshaling layer and so understands URLS
etc. but does not know the implementation.
So the pattern I am going to use for now is as follows:
- The ResourceKindImpl is responsible for creating the appropriate
PagingInfo object with the data about record numbers, keys etc.
- The ResponseGenerator will push the Resources URL to the PagingInfo
- The PagingInfo will combine the two to provide the link URLS back to the
ResponseGenerator as it asks for them.
Field Summary |
protected java.lang.String |
resourceSetURL
The basic URL for the resource set |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resourceSetURL
protected java.lang.String resourceSetURL
- The basic URL for the resource set
PagingInfo
public PagingInfo()
Copyright © 2011 Sage Software, Inc. All rights reserved.