Renamed 'process' to 'processorData' (#251)
Reviewed-on: #251 Reviewed-by: Mikolaj Widla <widlam@noreply.example.com> Co-authored-by: Adam Bem <adam.bem@zoho.eu> Co-committed-by: Adam Bem <adam.bem@zoho.eu>
This commit is contained in:
@@ -117,7 +117,7 @@ public class XmlController implements RestController {
|
||||
XMLRequestBody requestBody = xmlJob.getRequestBody();
|
||||
|
||||
XPathQueryResult xPathQueryResult =
|
||||
engine.processXPath(requestBody.getData(), requestBody.getProcess(), requestBody.getVersion());
|
||||
engine.processXPath(requestBody.getData(), requestBody.getProcessorData(), requestBody.getVersion());
|
||||
|
||||
return new XMLResponseBody(xPathQueryResult.getData().trim(),
|
||||
"OK", engine.getVersion(), xPathQueryResult.getType());
|
||||
@@ -130,14 +130,14 @@ public class XmlController implements RestController {
|
||||
String result = null;
|
||||
switch (xmlJob.getXmlJobType()) {
|
||||
case XSLT:
|
||||
result = engine.processXSLT(requestBody.getData(), requestBody.getProcess());
|
||||
result = engine.processXSLT(requestBody.getData(), requestBody.getProcessorData());
|
||||
break;
|
||||
case XSD:
|
||||
result = engine.validate(requestBody.getData(), requestBody.getProcess()).trim();
|
||||
result = engine.validate(requestBody.getData(), requestBody.getProcessorData()).trim();
|
||||
break;
|
||||
case XQuery:
|
||||
result = engine.executeXQuery(requestBody.getData(),
|
||||
requestBody.getProcess(),
|
||||
requestBody.getProcessorData(),
|
||||
requestBody.getVersion());
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -4,13 +4,13 @@ import com.google.gson.annotations.SerializedName;
|
||||
|
||||
/**
|
||||
* POJO class used to contain body of XML related requests
|
||||
* @author Adam
|
||||
* @author Adam Bem
|
||||
*/
|
||||
public class XMLRequestBody {
|
||||
@SerializedName("data")
|
||||
private String data;
|
||||
@SerializedName("process")
|
||||
private String process;
|
||||
@SerializedName("processorData")
|
||||
private String processorData;
|
||||
@SerializedName("processor")
|
||||
private String processor;
|
||||
@SerializedName("version")
|
||||
@@ -20,8 +20,8 @@ public class XMLRequestBody {
|
||||
return data;
|
||||
}
|
||||
|
||||
public String getProcess() {
|
||||
return process;
|
||||
public String getProcessorData() {
|
||||
return processorData;
|
||||
}
|
||||
|
||||
public String getProcessor() {
|
||||
|
||||
Reference in New Issue
Block a user