activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1128321 - /activemq/activemq-apollo/trunk/apollo-web/src/main/scala/org/apache/activemq/apollo/web/resources/RootResource.scala
Date Fri, 27 May 2011 14:27:32 GMT
Author: chirino
Date: Fri May 27 14:27:32 2011
New Revision: 1128321

URL: http://svn.apache.org/viewvc?rev=1128321&view=rev
Log:
Fix a Jersey warning due to void return type.

Modified:
    activemq/activemq-apollo/trunk/apollo-web/src/main/scala/org/apache/activemq/apollo/web/resources/RootResource.scala

Modified: activemq/activemq-apollo/trunk/apollo-web/src/main/scala/org/apache/activemq/apollo/web/resources/RootResource.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-web/src/main/scala/org/apache/activemq/apollo/web/resources/RootResource.scala?rev=1128321&r1=1128320&r2=1128321&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-web/src/main/scala/org/apache/activemq/apollo/web/resources/RootResource.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-web/src/main/scala/org/apache/activemq/apollo/web/resources/RootResource.scala
Fri May 27 14:27:32 2011
@@ -18,7 +18,7 @@ package org.apache.activemq.apollo.web.r
 
 import javax.ws.rs._
 import core.Response.Status._
-import core.{UriInfo, Context}
+import core.{Response, UriInfo, Context}
 import org.apache.activemq.apollo.util.ModuleRegistry
 import collection.mutable.HashMap
 import javax.servlet.http.HttpServletRequest
@@ -48,10 +48,9 @@ case class RootResource() extends Resour
   import RootResource._
 
   @GET
-  @Path("/")
   @Produces(Array("application/json", "application/xml","text/xml","text/html"))
-  def post_connection_shutdown_and_redirect():Unit = {
-    result(strip_resolve("broker"))
+  def post_connection_shutdown_and_redirect() = {
+    Response.seeOther(strip_resolve("broker")).build
   }
 
   @Path("{name}")



Mime
View raw message