|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.overlord.sramp.server.atom.services.AbstractResource
org.overlord.sramp.server.atom.services.AbstractFeedResource
org.overlord.sramp.server.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 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. |
| Methods inherited from class org.overlord.sramp.server.atom.services.AbstractFeedResource |
|---|
createArtifactFeed |
| 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 |
|---|
public QueryResource()
| Method Detail |
|---|
public 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 -
SrampAtomException
public 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 data
SrampAtomException
protected 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 Feed
Feed
SrampAtomException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||