1 18 package org.apache.activemq.web.controller; 19 20 import org.apache.activemq.web.BrokerFacade; 21 import org.apache.activemq.web.DurableSubscriberFacade; 22 import org.springframework.web.servlet.ModelAndView; 23 import org.springframework.web.servlet.mvc.Controller; 24 25 import javax.servlet.http.HttpServletRequest ; 26 import javax.servlet.http.HttpServletResponse ; 27 28 32 public class DeleteSubscriber extends DurableSubscriberFacade implements Controller { 33 34 public DeleteSubscriber(BrokerFacade brokerFacade) { 35 super(brokerFacade); 36 } 37 38 public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { 39 getBrokerAdmin().destroyDurableSubscriber(getClientId(), getSubscriberName()); 40 return new ModelAndView("redirect:subscribers.jsp"); 41 } 42 43 } 44 | Popular Tags |