SLIDER-50 change URL for published key-val pairs to .filetype, not /filetype
git-svn-id: https://svn.apache.org/repos/asf/incubator/slider/trunk@1594535 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/slider-core/src/main/java/org/apache/slider/server/appmaster/web/rest/publisher/PublisherResource.java b/slider-core/src/main/java/org/apache/slider/server/appmaster/web/rest/publisher/PublisherResource.java
index 7722eea..c9b8838 100644
--- a/slider-core/src/main/java/org/apache/slider/server/appmaster/web/rest/publisher/PublisherResource.java
+++ b/slider-core/src/main/java/org/apache/slider/server/appmaster/web/rest/publisher/PublisherResource.java
@@ -79,7 +79,7 @@
}
@GET
- @Path("/{config}")
+ @Path("/" + CONFIG)
@Produces({MediaType.APPLICATION_JSON})
public PublishedConfiguration getConfigurationInstance(
@PathParam("config") String config,
@@ -96,7 +96,7 @@
}
@GET
- @Path("/{config}.json")
+ @Path("/" + CONFIG+ ".json")
@Produces({MediaType.APPLICATION_JSON})
public String getConfigurationContentJson(
@PathParam("config") String config,
@@ -107,7 +107,7 @@
}
@GET
- @Path("/{config}.xml")
+ @Path("/" + CONFIG + ".xml")
@Produces({MediaType.APPLICATION_XML})
public String getConfigurationContentXML(
@PathParam("config") String config,
@@ -118,7 +118,7 @@
}
@GET
- @Path("/{config}.properties")
+ @Path("/" + CONFIG + ".properties")
@Produces({MediaType.APPLICATION_XML})
public String getConfigurationContentProperties(
@PathParam("config") String config,