|
||||||||||
| 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.resource.SitoolsParameterizedResource
public abstract class SitoolsParameterizedResource
Base class for Parameterized resources Some variables can be used in resource url attachment : ${context_host_ref} ${context_app_ref} ${context_resource_ref}
| Field Summary |
|---|
| Fields inherited from class fr.cnes.sitools.common.SitoolsResource |
|---|
DEFAULT_MEDIATYPE |
| Constructor Summary | |
|---|---|
SitoolsParameterizedResource()
|
|
| Method Summary | |
|---|---|
void |
addStandardResponseInfo(org.restlet.ext.wadl.MethodInfo info)
Configure the information to add a standard Sitools2 response |
void |
doInit()
Initiate the resource To initialize shared instance of objects between resources, get the component Context from the Settings and put the object in the Context ((SitoolsSettings)getContext().getAttributes().get(ContextAttributes.SETTINGS)).getComponent() .getContext().getAttributes().put(SOME KEY, SOME OBJECT) |
java.lang.String |
getId()
Gets the id value |
ResourceModel |
getModel()
Gets the model value |
java.lang.String |
getOverrideParameterValue(java.lang.String key)
Method to get a parameter value using the map |
java.lang.Object |
getOverrideParameterValueObject(java.lang.String key)
Get the override parameter specified by the given key if present; if not, returns the original parameter in the model. |
java.util.Collection<ResourceParameter> |
getOverrideParams()
Get the specific parameterized resource parameters collection |
java.lang.String |
getParameterValue(java.lang.String key)
Method to get a parameter value using the map |
java.lang.String |
getParent()
Gets the parent value |
void |
setId(java.lang.String id)
Sets the value of id |
void |
setModel(ResourceModel model)
Sets the value of model |
void |
setParent(java.lang.String parent)
Sets the value of parent |
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 |
| Methods inherited from interface fr.cnes.sitools.common.model.IResource |
|---|
getDescription, getName |
| Constructor Detail |
|---|
public SitoolsParameterizedResource()
| Method Detail |
|---|
public void sitoolsDescribe()
AbstractSitoolsResource
sitoolsDescribe in class AbstractSitoolsResourcepublic void doInit()
public final void setModel(ResourceModel model)
model - the model to setpublic final ResourceModel getModel()
public final void setId(java.lang.String id)
setId in interface IResourceid - the id to setpublic final java.lang.String getId()
getId in interface IResourcepublic final void setParent(java.lang.String parent)
parent - the parent to setpublic final java.lang.String getParent()
public final java.lang.String getParameterValue(java.lang.String key)
key - the key to get the parameter
public final java.lang.String getOverrideParameterValue(java.lang.String key)
key - the key to get the parameter
public final java.lang.Object getOverrideParameterValueObject(java.lang.String key)
key - parameter identifier
public void addStandardResponseInfo(org.restlet.ext.wadl.MethodInfo info)
addStandardResponseInfo in class SitoolsResourceinfo - the WADL method informationpublic java.util.Collection<ResourceParameter> getOverrideParams()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||