mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1242793 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
beda82ad5a
commit
33f9f2968b
|
@ -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"};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue