|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.Handler
org.restlet.resource.Resource
org.hackystat.sensorbase.resource.sensorbase.SensorBaseResource
org.hackystat.sensorbase.resource.db.RowCountResource
public class RowCountResource
Implements the resource for obtaining the number of rows in a specifed table using GET {host}/db/table/{table}/rowcount.
Field Summary |
---|
Fields inherited from class org.hackystat.sensorbase.resource.sensorbase.SensorBaseResource |
---|
authUser, project, projectManager, projectName, responseMsg, sdtManager, sensorDataManager, server, uriUser, user, userManager |
Constructor Summary | |
---|---|
RowCountResource(org.restlet.Context context,
org.restlet.data.Request request,
org.restlet.data.Response response)
The standard constructor. |
Method Summary | |
---|---|
org.restlet.resource.Representation |
represent(org.restlet.resource.Variant variant)
Returns the row count for the specifed table, or an error if the user is not the admin or the table name is not valid. |
Methods inherited from class org.hackystat.sensorbase.resource.sensorbase.SensorBaseResource |
---|
getStringRepresentation, setStatusBadTimestamp, setStatusInternalError, setStatusMiscError, validateAuthUserIsAdmin, validateAuthUserIsAdminOrUriUser, validateProjectOwner, validateProjectViewer, validateUriProjectName, validateUriUserIsUser |
Methods inherited from class org.restlet.resource.Resource |
---|
acceptRepresentation, allowDelete, allowGet, allowPost, allowPut, delete, getPreferredRepresentation, getPreferredVariant, getRepresentation, getVariants, handleDelete, handleGet, handlePost, handlePut, init, isAvailable, isModifiable, isNegotiateContent, isReadable, post, put, removeRepresentations, represent, setAvailable, setModifiable, setNegotiateContent, setReadable, setVariants, storeRepresentation |
Methods inherited from class org.restlet.Handler |
---|
allowHead, allowOptions, generateRef, getAllowedMethods, getApplication, getContext, getLogger, getMatrix, getQuery, getRequest, getResponse, handleHead, handleOptions, setContext, setRequest, setResponse, updateAllowedMethods |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RowCountResource(org.restlet.Context context, org.restlet.data.Request request, org.restlet.data.Response response)
context
- The context.request
- The request object.response
- The response object.Method Detail |
---|
public org.restlet.resource.Representation represent(org.restlet.resource.Variant variant)
represent
in class SensorBaseResource
variant
- Ignored.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |