org.overlord.sramp.atom.services
Class AbstractFeedResource

java.lang.Object
  extended by org.overlord.sramp.atom.services.AbstractFeedResource
Direct Known Subclasses:
FeedResource, QueryResource

public abstract class AbstractFeedResource
extends Object

Base class for all resources that respond with Atom Feeds.


Constructor Summary
protected AbstractFeedResource()
          Constructor.
 
Method Summary
protected  org.jboss.resteasy.plugins.providers.atom.Feed createArtifactFeed(String query, Integer page, Integer pageSize, String orderBy, Boolean ascending, Set<String> propNames)
          Common method that performs a query for artifacts and returns them in an Atom Feed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFeedResource

protected AbstractFeedResource()
Constructor.

Method Detail

createArtifactFeed

protected org.jboss.resteasy.plugins.providers.atom.Feed createArtifactFeed(String query,
                                                                            Integer page,
                                                                            Integer pageSize,
                                                                            String orderBy,
                                                                            Boolean ascending,
                                                                            Set<String> propNames)
                                                                     throws SrampAtomException
Common method that performs a query for artifacts and returns them in an Atom Feed.

Parameters:
query - the x-path formatted s-ramp query
page - which page in the results should be returned
pageSize - the size of each page of results
orderBy - the property to sort the results by
ascending - the sort direction
propNames - the set of s-ramp property names - the extra properties that the query should return as part of the Feed
Returns:
an Atom Feed
Throws:
SrampAtomException


Copyright © 2011-2012 JBoss, a division of Red Hat. All Rights Reserved.