git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1242793 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2012-02-10 14:41:44 +00:00
parent beda82ad5a
commit 33f9f2968b
1 changed files with 6 additions and 6 deletions

View File

@ -24,7 +24,7 @@ import org.apache.activemq.command.ActiveMQDestination;
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"};
}
}