org.overlord.sramp.server.atom.services
Class AbstractFeedResource
java.lang.Object
org.overlord.sramp.server.atom.services.AbstractResource
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractFeedResource
protected AbstractFeedResource()
- Constructor.
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 querystartIndex - which index within the result set to start with (0 indexed)count - the number of items desiredorderBy - the property to sort the results byascending - the sort directionpropNames - 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.