You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by js...@apache.org on 2008/09/11 17:16:31 UTC
svn commit: r694290 -
/activemq/camel/trunk/components/camel-rest/src/main/java/org/apache/camel/rest/resources/CamelContextResource.java
Author: jstrachan
Date: Thu Sep 11 08:16:29 2008
New Revision: 694290
URL: http://svn.apache.org/viewvc?rev=694290&view=rev
Log:
fixed failing test case
Modified:
activemq/camel/trunk/components/camel-rest/src/main/java/org/apache/camel/rest/resources/CamelContextResource.java
Modified: activemq/camel/trunk/components/camel-rest/src/main/java/org/apache/camel/rest/resources/CamelContextResource.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-rest/src/main/java/org/apache/camel/rest/resources/CamelContextResource.java?rev=694290&r1=694289&r2=694290&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-rest/src/main/java/org/apache/camel/rest/resources/CamelContextResource.java (original)
+++ activemq/camel/trunk/components/camel-rest/src/main/java/org/apache/camel/rest/resources/CamelContextResource.java Thu Sep 11 08:16:29 2008
@@ -38,7 +38,7 @@
*/
@Path("/")
@Singleton
-@Produces({"text/html", "application/json", "application/xml"})
+@Produces({"text/html", "application/xml", "application/json"})
public class CamelContextResource {
private final CamelContext camelContext;
@@ -60,6 +60,7 @@
*
* @return
*/
+ @GET
@Path("endpoints")
public Endpoints getEndpoints() {
return new Endpoints(camelContext);
@@ -68,6 +69,7 @@
/**
* Looks up an individual endpoint
*/
+ @GET
@Path("endpoints/{id}")
public EndpointResource getEndpoint(@PathParam("id") String id) {
// TODO lets assume the ID is the endpoint