|
|
|
@ -142,7 +142,7 @@ public class RequestHandler {
|
|
|
|
|
InnerMethodName.instance.set("DescribeProcess");
|
|
|
|
|
}
|
|
|
|
|
else if (requestType.equalsIgnoreCase("Execute")) {
|
|
|
|
|
req = new ExecuteRequest(ciMap, env);
|
|
|
|
|
req = new ExecuteRequest(ciMap, this.env);
|
|
|
|
|
setResponseMimeType((ExecuteRequest)req);
|
|
|
|
|
InnerMethodName.instance.set("Execute");
|
|
|
|
|
}
|
|
|
|
@ -171,11 +171,12 @@ public class RequestHandler {
|
|
|
|
|
* The OutputStream to write the response to.
|
|
|
|
|
* @throws ExceptionReport
|
|
|
|
|
*/
|
|
|
|
|
public RequestHandler(InputStream is, OutputStream os)
|
|
|
|
|
public RequestHandler(InputStream is, OutputStream os, EnvironmentVariableManager env)
|
|
|
|
|
throws ExceptionReport {
|
|
|
|
|
String nodeName, localName, nodeURI, version = null;
|
|
|
|
|
Document doc;
|
|
|
|
|
this.os = os;
|
|
|
|
|
this.env= env;
|
|
|
|
|
|
|
|
|
|
boolean isCapabilitiesNode = false;
|
|
|
|
|
|
|
|
|
@ -263,7 +264,7 @@ public class RequestHandler {
|
|
|
|
|
// get the request type
|
|
|
|
|
if (nodeURI.equals(WebProcessingService.WPS_NAMESPACE) && localName.equals("Execute")) {
|
|
|
|
|
LOGGER.debug("Detected Request to Execute!");
|
|
|
|
|
req = new ExecuteRequest(doc, env);
|
|
|
|
|
req = new ExecuteRequest(doc, this.env);
|
|
|
|
|
setResponseMimeType((ExecuteRequest)req);
|
|
|
|
|
InnerMethodName.instance.set("Execute");
|
|
|
|
|
LOGGER.debug("Request to Execute Configured!");
|
|
|
|
@ -396,7 +397,7 @@ public class RequestHandler {
|
|
|
|
|
GetCapabilitiesBuilder builder = new GetCapabilitiesBuilder();
|
|
|
|
|
String getCapabilitiesStringFromInfra = "";
|
|
|
|
|
try {
|
|
|
|
|
getCapabilitiesStringFromInfra = builder.buildGetCapabilities(params);
|
|
|
|
|
getCapabilitiesStringFromInfra = builder.buildGetCapabilities(params, env);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
throw new ExceptionReport("Error in building GetCapabilities","getcapabilities",e);
|
|
|
|
|
}
|
|
|
|
|