|
||||||||||
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.common.AbstractPluginResource
fr.cnes.sitools.plugins.resources.AbstractResourcePluginResource
public class AbstractResourcePluginResource
Base class for resource plugin resources
Field Summary |
---|
Fields inherited from class fr.cnes.sitools.common.SitoolsResource |
---|
DEFAULT_MEDIATYPE |
Constructor Summary | |
---|---|
AbstractResourcePluginResource()
|
Method Summary | |
---|---|
java.util.Set<ConstraintViolation> |
checkValidity(ResourceModel input)
Check the validaty of the given ConverterModel |
void |
doInit()
Initiate the resource |
ResourceModelDTO |
getObject(org.restlet.representation.Representation representation)
Get a FilterModelDTO from a Representation |
java.lang.String |
getParentId()
Gets the parentId value |
org.restlet.representation.Representation |
getRepresentation(Response response,
org.restlet.data.MediaType media)
Gets representation according to the specified MediaType. |
ResourceModelDTO |
getResourceModelDTO(ResourceModel resource)
Get a ResourceModelDTO from a ResourceModel |
java.lang.String |
getResourcePluginId()
Gets the resourcePluginId value |
void |
registerObserver(ResourceModel input)
Register as observer |
void |
sitoolsDescribe()
Method implementation mandatory |
void |
unregisterObserver(ResourceModel input)
Unregister as Observer |
Methods inherited from class fr.cnes.sitools.common.AbstractPluginResource |
---|
checkValidity, configure, fromListToMap |
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 AbstractResourcePluginResource()
Method Detail |
---|
public void sitoolsDescribe()
AbstractSitoolsResource
sitoolsDescribe
in class AbstractSitoolsResource
public void doInit()
SitoolsResource
public final org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
getRepresentation
in class SitoolsResource
response
- : The response to get the representation frommedia
- : The MediaType asked
public ResourceModelDTO getObject(org.restlet.representation.Representation representation) throws java.io.IOException
representation
- the Representation
java.io.IOException
- if there is an error while parsing the java objectpublic final void registerObserver(ResourceModel input)
input
- The ConverterChainedModelpublic final void unregisterObserver(ResourceModel input)
input
- ConverterChainedModel Objetpublic final java.lang.String getParentId()
public final java.lang.String getResourcePluginId()
public final java.util.Set<ConstraintViolation> checkValidity(ResourceModel input)
input
- the ConverterModel to validate
public ResourceModelDTO getResourceModelDTO(ResourceModel resource)
resource
- the ResourceModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |