public class QueryResource extends AbstractFeedResource
| Constructor and Description |
|---|
QueryResource()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.jboss.resteasy.plugins.providers.atom.Feed |
query(String query,
Integer startIndex,
Integer count,
String orderBy,
Boolean ascending,
Set<String> propNames,
String baseUrl)
Common method that performs the query and returns the atom
Feed. |
org.jboss.resteasy.plugins.providers.atom.Feed |
queryFromGet(javax.servlet.http.HttpServletRequest request,
String query,
Integer startPage,
Integer startIndex,
Integer count,
String orderBy,
Boolean asc,
Set<String> propNames)
Do an s-ramp query from a GET style request.
|
org.jboss.resteasy.plugins.providers.atom.Feed |
queryFromPost(javax.servlet.http.HttpServletRequest request,
org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput input)
Handles clients that POST the query to the /s-ramp endpoint.
|
createArtifactFeedensureSupportsMark, logErrorpublic org.jboss.resteasy.plugins.providers.atom.Feed queryFromGet(@Context
javax.servlet.http.HttpServletRequest request,
String query,
Integer startPage,
Integer startIndex,
Integer count,
String orderBy,
Boolean asc,
Set<String> propNames)
throws SrampAtomException
uri - query - startPage - startIndex - count - orderBy - asc - SrampAtomExceptionpublic org.jboss.resteasy.plugins.providers.atom.Feed queryFromPost(@Context
javax.servlet.http.HttpServletRequest request,
org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput input)
throws SrampAtomException
input - the multipart form dataSrampAtomExceptionprotected org.jboss.resteasy.plugins.providers.atom.Feed query(String query, Integer startIndex, Integer count, String orderBy, Boolean ascending, Set<String> propNames, String baseUrl) throws SrampAtomException
Feed.query - the x-path formatted s-ramp querystartIndex - index of the first item in the result that should be returnedcount - the number of items to returnorderBy - 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 FeedFeedSrampAtomExceptionCopyright © 2011–2013 JBoss, a division of Red Hat. All rights reserved.