Class 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 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.ExceptionReport
        Validates the client request
        Specified by:
        validate in class org.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
        Specified by:
        call in interface Callable<org.n52.wps.server.response.Response>
        Specified by:
        call in class org.n52.wps.server.request.Request
        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:
        getAttachedResult in class org.n52.wps.server.request.Request
      • isStoreResponse

        public boolean isStoreResponse()
      • isQuickStatus

        public boolean isQuickStatus()
      • isRawData

        public boolean isRawData()
      • update

        public void update​(org.n52.wps.server.observerpattern.ISubject subject)
        Specified by:
        update in interface org.n52.wps.server.observerpattern.IObserver
      • updateStatusAccepted

        public void updateStatusAccepted()
      • updateStatusStarted

        public void updateStatusStarted()
      • updateStatusSuccess

        public void updateStatusSuccess()
      • updateStatusError

        public void updateStatusError​(String errorMessage)