|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.overlord.sramp.atom.services.AbstractFeedResource
org.overlord.sramp.atom.services.QueryResource
public class QueryResource
Implementation of the S-RAMP query features defined in the Atom Binding document.
| Constructor Summary | |
|---|---|
QueryResource()
Constructor. |
|
| Method Summary | |
|---|---|
protected org.jboss.resteasy.plugins.providers.atom.Feed |
query(String query,
Integer page,
Integer pageSize,
String orderBy,
Boolean ascending,
Set<String> propNames)
Common method that performs the query and returns the atom Feed. |
org.jboss.resteasy.plugins.providers.atom.Feed |
queryFromGet(javax.ws.rs.core.UriInfo uri,
String query,
Integer page,
Integer pageSize,
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(org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput input)
Handles clients that POST the query to the /s-ramp endpoint. |
| Methods inherited from class org.overlord.sramp.atom.services.AbstractFeedResource |
|---|
createArtifactFeed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryResource()
| Method Detail |
|---|
public org.jboss.resteasy.plugins.providers.atom.Feed queryFromGet(@Context
javax.ws.rs.core.UriInfo uri,
String query,
Integer page,
Integer pageSize,
String orderBy,
Boolean asc,
Set<String> propNames)
throws SrampAtomException
uri - query - page - pageSize - orderBy - asc -
SrampAtomException
public org.jboss.resteasy.plugins.providers.atom.Feed queryFromPost(org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput input)
throws SrampAtomException
input - the multipart form data
SrampAtomException
protected org.jboss.resteasy.plugins.providers.atom.Feed query(String query,
Integer page,
Integer pageSize,
String orderBy,
Boolean ascending,
Set<String> propNames)
throws SrampAtomException
Feed.
query - the x-path formatted s-ramp querypage - which page in the results should be returnedpageSize - the size of each page of resultsorderBy - 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
Feed
SrampAtomException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||