protected XdmNode xsl() {
return ((PiperackApplication) getApplication()).xsl();
}
protected String pipelineUri(String id) {
ServerInfo serverInfo = getServerInfo();
String hostname = "localhost";
if (serverInfo.getAddress() != null) {
// I bet this is a number not a name :-(
hostname = serverInfo.getAddress();
}
return "http://" + hostname + ":" + serverInfo.getPort() + "/pipelines/" + id;
}