org.overlord.sramp.server.atom.services
Class AbstractFeedResource

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

public abstract class AbstractFeedResource
extends AbstractResource

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 startIndex, Integer count, String orderBy, Boolean ascending, Set<String> propNames, String baseUrl)
          Common method that performs a query for artifacts and returns them in an Atom Feed.
 
Methods inherited from class org.overlord.sramp.server.atom.services.AbstractResource
logError
 
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 startIndex,
                                                                            Integer count,
                                                                            String orderBy,
                                                                            Boolean ascending,
                                                                            Set<String> propNames,
                                                                            String baseUrl)
                                                                     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
startIndex - which index within the result set to start with (0 indexed)
count - the number of items desired
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-2013 JBoss, a division of Red Hat. All Rights Reserved.