restBody = restBody.replace("${TOKEN}", token == null ? "" : token);
restBody = restBody.replace("${FEATURES}", features == null ? ""
: features);
ServiceHTML html = new ServiceHTML();
html.setContextRoot(contextRoot);
html.setTitle("Update Features (" + serviceName + ")");
html
.setCatalog(" > <a href='"
+ contextRoot
+ "/rest/service/FeatureService'>Feature Service</a> > <a href='"
+ contextRoot + "/rest/service/FeatureService/"
+ serviceName + "'>" + serviceName
+ "</a> > <a href='" + contextRoot
+ "/rest/service/FeatureService/" + serviceName
+ "/" + layerId + "'>" + layerId
+ "</a> > Update Features");
html.setHeader("Update Features Layer ID: " + layerId);
html.setRestBody(restBody);
result = html.toString();
} catch (Exception ex) {
ex.printStackTrace();
}
return result;