1 10 11 package org.mule.providers.http.jetty; 12 13 import org.mule.config.i18n.Message; 14 import org.mule.providers.AbstractMessageReceiver; 15 import org.mule.providers.http.servlet.MuleReceiverServlet; 16 import org.mule.umo.endpoint.EndpointException; 17 18 import javax.servlet.ServletConfig ; 19 import javax.servlet.ServletException ; 20 import javax.servlet.http.HttpServletRequest ; 21 22 26 27 public class JettyReceiverServlet extends MuleReceiverServlet 28 { 29 32 private static final long serialVersionUID = 238326861089137293L; 33 34 private AbstractMessageReceiver receiver; 35 36 protected void doInit(ServletConfig servletConfig) throws ServletException 37 { 38 receiver = (AbstractMessageReceiver)servletConfig.getServletContext().getAttribute("messageReceiver"); 39 if (receiver == null) 40 { 41 throw new ServletException (new Message("http", 7).toString()); 42 } 43 } 44 45 protected AbstractMessageReceiver getReceiverForURI(HttpServletRequest httpServletRequest) 46 throws EndpointException 47 { 48 return receiver; 49 } 50 } 51 | Popular Tags |