|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectExtendedWadlServerResource
fr.cnes.sitools.common.resource.AbstractSitoolsResource
fr.cnes.sitools.common.SitoolsResource
fr.cnes.sitools.datasource.mongodb.dbexplorer.MongoDBExplorerResource
public class MongoDBExplorerResource
DBExplorerResource using DataSource for pooled connections
Field Summary |
---|
Fields inherited from class fr.cnes.sitools.common.SitoolsResource |
---|
DEFAULT_MEDIATYPE |
Constructor Summary | |
---|---|
MongoDBExplorerResource()
|
Method Summary | |
---|---|
void |
configure(com.thoughtworks.xstream.XStream xstream,
Response response)
Configure the XStream |
void |
doInit()
Initiate the resource |
org.restlet.representation.Representation |
get(org.restlet.representation.Variant variant)
Get an representation |
java.lang.String |
getBaseRef()
Get base reference |
SitoolsMongoDBDataSource |
getDataSource()
Get the DataSource |
int |
getFetchSize()
Gets the fetchSize value |
int |
getLimit()
Gets the limit value |
int |
getMaxrows()
Gets the maxrows value |
int |
getPaginationExtend()
Read extend request parameter -> integer - maxrows by default |
int |
getPaginationStartRecord()
Read startRecord request parameter -> integer - 0 by default |
int |
getStart()
Gets the start value |
boolean |
isDatabaseTarget()
Returns if target is a database |
boolean |
isRecordSetTarget()
Returns if target is a record set |
boolean |
isRecordTarget()
Returns if target is a record |
org.restlet.representation.Representation |
processConstraint(org.restlet.representation.Variant variant)
Process constraint |
void |
setLimit(int limit)
Sets the value of limit |
void |
setStart(int start)
Sets the value of start |
void |
sitoolsDescribe()
Method implementation mandatory |
Methods inherited from class fr.cnes.sitools.common.resource.AbstractSitoolsResource |
---|
getMediaType |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MongoDBExplorerResource()
Method Detail |
---|
public void sitoolsDescribe()
AbstractSitoolsResource
sitoolsDescribe
in class AbstractSitoolsResource
public final boolean isDatabaseTarget()
public final boolean isRecordSetTarget()
public final boolean isRecordTarget()
public final void doInit()
SitoolsResource
public final SitoolsMongoDBDataSource getDataSource()
public org.restlet.representation.Representation processConstraint(org.restlet.representation.Variant variant)
variant
- Client preference
@Get public org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
variant
- the variant needed by the client
public final java.lang.String getBaseRef()
public final int getPaginationStartRecord()
public final int getPaginationExtend()
public final int getFetchSize()
public final int getMaxrows()
public void configure(com.thoughtworks.xstream.XStream xstream, Response response)
configure
in class SitoolsResource
xstream
- the XStream to treatresponse
- the response usedpublic int getStart()
public void setStart(int start)
start
- the start to setpublic int getLimit()
public void setLimit(int limit)
limit
- the limit to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |