Package org.gcube.data.analysis.wps
Class ExecuteRequest
- java.lang.Object
-
- org.n52.wps.server.request.Request
-
- org.gcube.data.analysis.wps.ExecuteRequest
-
- All Implemented Interfaces:
Callable<org.n52.wps.server.response.Response>,org.n52.wps.server.observerpattern.IObserver
public class ExecuteRequest extends org.n52.wps.server.request.Request implements org.n52.wps.server.observerpattern.IObserver
-
-
Constructor Summary
Constructors Constructor Description ExecuteRequest(org.apache.commons.collections.map.CaseInsensitiveMap ciMap, org.gcube.dataanalysis.wps.statisticalmanager.synchserver.mapping.EnvironmentVariableManager env)ExecuteRequest(Document doc, org.gcube.dataanalysis.wps.statisticalmanager.synchserver.mapping.EnvironmentVariableManager env)Creates an ExecuteRequest based on a Document (HTTP_POST)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.n52.wps.server.response.Responsecall()StringgetAlgorithmIdentifier()Gets the identifier of the algorithm the client requestedMap<String,org.n52.wps.io.data.IData>getAttachedResult()net.opengis.wps.x100.ExecuteDocument.ExecutegetExecute()Gets the Execute that is associated with this RequestExecuteResponseBuildergetExecuteResponseBuilder()voidgetKVPDataInputs()booleanisQuickStatus()booleanisRawData()booleanisStoreResponse()voidupdate(org.n52.wps.server.observerpattern.ISubject subject)voidupdateStatusAccepted()voidupdateStatusError(String errorMessage)voidupdateStatusStarted()voidupdateStatusSuccess()booleanvalidate()Validates the client request
-
-
-
Constructor Detail
-
ExecuteRequest
public ExecuteRequest(Document doc, org.gcube.dataanalysis.wps.statisticalmanager.synchserver.mapping.EnvironmentVariableManager env) throws org.n52.wps.server.ExceptionReport
Creates an ExecuteRequest based on a Document (HTTP_POST)- Parameters:
doc- The clients submission- Throws:
org.n52.wps.server.ExceptionReport
-
ExecuteRequest
public ExecuteRequest(org.apache.commons.collections.map.CaseInsensitiveMap ciMap, org.gcube.dataanalysis.wps.statisticalmanager.synchserver.mapping.EnvironmentVariableManager env) throws org.n52.wps.server.ExceptionReport- Throws:
org.n52.wps.server.ExceptionReport
-
-
Method Detail
-
getKVPDataInputs
public void getKVPDataInputs()
-
validate
public boolean validate() throws org.n52.wps.server.ExceptionReportValidates the client request- Specified by:
validatein classorg.n52.wps.server.request.Request- Returns:
- True if the input is valid, False otherwise
- Throws:
org.n52.wps.server.ExceptionReport
-
call
public org.n52.wps.server.response.Response call() throws org.n52.wps.server.ExceptionReport
-
getAlgorithmIdentifier
public String getAlgorithmIdentifier()
Gets the identifier of the algorithm the client requested- Returns:
- An identifier
-
getExecute
public net.opengis.wps.x100.ExecuteDocument.Execute getExecute()
Gets the Execute that is associated with this Request- Returns:
- The Execute
-
getAttachedResult
public Map<String,org.n52.wps.io.data.IData> getAttachedResult()
- Specified by:
getAttachedResultin classorg.n52.wps.server.request.Request
-
isStoreResponse
public boolean isStoreResponse()
-
isQuickStatus
public boolean isQuickStatus()
-
getExecuteResponseBuilder
public ExecuteResponseBuilder getExecuteResponseBuilder()
-
isRawData
public boolean isRawData()
-
update
public void update(org.n52.wps.server.observerpattern.ISubject subject)
- Specified by:
updatein interfaceorg.n52.wps.server.observerpattern.IObserver
-
updateStatusAccepted
public void updateStatusAccepted()
-
updateStatusStarted
public void updateStatusStarted()
-
updateStatusSuccess
public void updateStatusSuccess()
-
updateStatusError
public void updateStatusError(String errorMessage)
-
-