fr.cnes.sitools.resources.programs
Class CommandLineService
java.lang.Object
ExtendedWadlServerResource
fr.cnes.sitools.common.resource.AbstractSitoolsResource
fr.cnes.sitools.common.SitoolsResource
fr.cnes.sitools.common.resource.SitoolsParameterizedResource
fr.cnes.sitools.resources.programs.CommandLineService
- All Implemented Interfaces:
- IResource
public class CommandLineService
- extends SitoolsParameterizedResource
Generic Command line service incubator
TODO Improving file management (without files in pure streaming ?) TODO Unit testing
- Author:
- jp.boignard (AKKA Technologies)
Method Summary |
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) |
org.restlet.representation.Representation |
get()
|
org.restlet.representation.Representation |
post(org.restlet.representation.Representation rep)
Transform request text in result |
void |
sitoolsDescribe()
Method implementation mandatory |
Methods inherited from class fr.cnes.sitools.common.resource.SitoolsParameterizedResource |
addStandardResponseInfo, getId, getModel, getOverrideParameterValue, getOverrideParameterValueObject, getOverrideParams, getParameterValue, getParent, setId, setModel, setParent |
Methods inherited from class fr.cnes.sitools.common.SitoolsResource |
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardSimpleResponseInfo, configure, getNotificationObject, getRepresentation, getRepresentation, getSettings, getSitoolsApplication, getSitoolsSetting, trace, trace |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandLineService
public CommandLineService()
doInit
public void doInit()
- Description copied from class:
SitoolsParameterizedResource
- 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)
- Overrides:
doInit
in class SitoolsParameterizedResource
sitoolsDescribe
public void sitoolsDescribe()
- Description copied from class:
AbstractSitoolsResource
- Method implementation mandatory
- Overrides:
sitoolsDescribe
in class SitoolsParameterizedResource
post
@Post
public org.restlet.representation.Representation post(org.restlet.representation.Representation rep)
- Transform request text in result
- Parameters:
rep
- a Representation
- Returns:
- FileRepresentation
get
@Get
public org.restlet.representation.Representation get()
Copyright © 2010-2013 CNES. All Rights Reserved.