|
||||||||||
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.dictionary.AbstractDictionaryResource
public abstract class AbstractDictionaryResource
Base resource for dictionary management
Field Summary |
---|
Fields inherited from class fr.cnes.sitools.common.SitoolsResource |
---|
DEFAULT_MEDIATYPE |
Constructor Summary | |
---|---|
AbstractDictionaryResource()
|
Method Summary | |
---|---|
void |
configure(com.thoughtworks.xstream.XStream xstream,
Response response)
Configure XStream mapping for xml and json serialization TODO Optimisation possible au lieu de créer à chaque fois une instance de XStream conserver 4 instances d'XStream correspondant aux 4 combinaisons possibles : classe retournée (Dictionary, Notion) et type (data / item) |
void |
doInit()
Initiate the resource |
java.lang.String |
getConceptId()
Gets the conceptId value |
java.lang.String |
getDictionaryId()
Gets the dictionaryId value |
java.lang.String |
getNotionId()
Gets the notionId value |
Dictionary |
getObject(org.restlet.representation.Representation representation,
org.restlet.representation.Variant variant)
Decodes a representation to a Dictionary object. |
org.restlet.representation.Representation |
getRepresentation(Response response,
org.restlet.data.MediaType media)
Encode a response into a Representation according to the given media type. |
SitoolsStore<Dictionary> |
getStore()
Gets the store value |
Methods inherited from class fr.cnes.sitools.common.resource.AbstractSitoolsResource |
---|
getMediaType, sitoolsDescribe |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractDictionaryResource()
Method Detail |
---|
public void doInit()
SitoolsResource
public void configure(com.thoughtworks.xstream.XStream xstream, Response response)
configure
in class SitoolsResource
xstream
- XStreamresponse
- Responsepublic final Dictionary getObject(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant) throws java.io.IOException
representation
- Representationvariant
- Variant
java.io.IOException
- if there is an error while parsing the serialize java objectpublic org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
getRepresentation
in class SitoolsResource
response
- Responsemedia
- Response
public final java.lang.String getNotionId()
public java.lang.String getConceptId()
public final java.lang.String getDictionaryId()
public final SitoolsStore<Dictionary> getStore()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |