[gatein-commits] gatein SVN: r5208 - components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/handlers.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Nov 22 16:17:30 EST 2010


Author: mwringe
Date: 2010-11-22 16:17:29 -0500 (Mon, 22 Nov 2010)
New Revision: 5208

Modified:
   components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/handlers/InvocationDispatcher.java
Log:
Clean up an error message to better indicate what the problem is when using wsrp v1.

Modified: components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/handlers/InvocationDispatcher.java
===================================================================
--- components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/handlers/InvocationDispatcher.java	2010-11-22 19:37:42 UTC (rev 5207)
+++ components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/handlers/InvocationDispatcher.java	2010-11-22 21:17:29 UTC (rev 5208)
@@ -115,7 +115,14 @@
          }
          else
          {
-            return new ErrorResponse("Did not get a resource URL or a resource ID, cannot fetch resource.");
+            if (consumer.isUsingWSRP2())
+            {
+               return new ErrorResponse("Did not get a resource URL or a resource ID, cannot fetch resource.");
+            }
+            else //using WSRP1
+            {
+               return new ErrorResponse("Did not get a resource URL, cannot fetch resource.");
+            }
          }
       }
       else if (invocation instanceof EventInvocation)



More information about the gatein-commits mailing list