You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2012/02/10 15:41:45 UTC
svn commit: r1242793 -
/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/DestinationFacade.java
Author: tabish
Date: Fri Feb 10 14:41:44 2012
New Revision: 1242793
URL: http://svn.apache.org/viewvc?rev=1242793&view=rev
Log:
fix for: https://issues.apache.org/jira/browse/AMQ-1899
Modified:
activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/DestinationFacade.java
Modified: activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/DestinationFacade.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/DestinationFacade.java?rev=1242793&r1=1242792&r2=1242793&view=diff
==============================================================================
--- activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/DestinationFacade.java (original)
+++ activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/DestinationFacade.java Fri Feb 10 14:41:44 2012
@@ -24,7 +24,7 @@ import org.apache.activemq.command.Activ
import org.springframework.web.servlet.ModelAndView;
/**
- *
+ *
*/
public class DestinationFacade {
@@ -108,16 +108,16 @@ public class DestinationFacade {
}
protected String getValidDestination() {
- if (jmsDestination == null) {
+ if (jmsDestination == null || jmsDestination.isEmpty()) {
throw new IllegalArgumentException("No JMSDestination parameter specified");
}
return jmsDestination;
}
-
+
protected QueueViewMBean getQueueView() throws Exception {
String name = getPhysicalDestinationName();
return getBrokerFacade().getQueue(name);
- }
+ }
protected ModelAndView redirectToRequest(HttpServletRequest request) {
String view = "redirect:" + request.getRequestURI();
@@ -131,8 +131,8 @@ public class DestinationFacade {
protected String getPhysicalDestinationName() {
return createDestination().getPhysicalName();
}
-
+
public String[] getSupportedHttpMethods() {
- return new String[]{"GET", "POST"};
+ return new String[]{"GET", "POST"};
}
}