String algorithmIdentifier = pInputList.get(0).getExecuteDocument().getExecute().getIdentifier().getStringValue();
String algorithmIdentifier = pExecuteDocument.getExecute().getIdentifier().getStringValue(); List<String> applicationFiles = getApplicationFiles(algorithmIdentifier);
String algorithmIdentifier = pExecuteDocument.getExecute().getIdentifier().getStringValue();
ProcessDescriptionType description = RepositoryManager.getInstance().getProcessDescription(request.getExecute().getIdentifier().getStringValue()); if(description==null){ throw new RuntimeException("Error while accessing the process description for "+ request.getExecute().getIdentifier().getStringValue());
String algorithmIdentifier = pExecuteDocument.getExecute().getIdentifier().getStringValue();
String algorithmIdentifier = pExecuteDocument.getExecute().getIdentifier().getStringValue();
ParserFactory.initialize(parsers); String algorithmIdentifier = pExecuteDocument.getExecute().getIdentifier().getStringValue();
public ExecuteResponseBuilder(ExecuteRequest request) throws ExceptionReport{ this.request = request; doc = ExecuteResponseDocument.Factory.newInstance(); doc.addNewExecuteResponse(); XmlCursor c = doc.newCursor(); c.toFirstChild(); c.toLastAttribute(); c.setAttributeText(new QName(XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI, "schemaLocation"), "http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsExecute_response.xsd"); doc.getExecuteResponse().setServiceInstance(CapabilitiesConfiguration.ENDPOINT_URL+"?REQUEST=GetCapabilities&SERVICE=WPS"); doc.getExecuteResponse().setLang(WebProcessingService.DEFAULT_LANGUAGE); doc.getExecuteResponse().setService("WPS"); doc.getExecuteResponse().setVersion(Request.SUPPORTED_VERSION); this.identifier = request.getExecute().getIdentifier().getStringValue().trim(); ExecuteResponse responseElem = doc.getExecuteResponse(); responseElem.addNewProcess().addNewIdentifier().setStringValue(identifier); description = RepositoryManager.getInstance().getProcessDescription(this.identifier); if(description==null){ throw new RuntimeException("Error while accessing the process description for "+ identifier); } responseElem.getProcess().setTitle(description.getTitle()); responseElem.getProcess().setProcessVersion(description.getProcessVersion()); creationTime = Calendar.getInstance(); }
/** * Gets the identifier of the algorithm the client requested * * @return An identifier */ public String getAlgorithmIdentifier() { //Fix for bug https://bugzilla.52north.org/show_bug.cgi?id=906 if(getExecute().getIdentifier() != null){ return getExecute().getIdentifier().getStringValue(); } return null; }