Coverage Report - org.mule.providers.http.jetty.JettyReceiverServlet
 
Classes in this File Line Coverage Branch Coverage Complexity
JettyReceiverServlet
0%
0/6
0%
0/1
2
 
 1  
 /*
 2  
  * $Id: JettyReceiverServlet.java 7976 2007-08-21 14:26:13Z dirk.olmes $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 
 11  
 package org.mule.providers.http.jetty;
 12  
 
 13  
 import org.mule.providers.AbstractMessageReceiver;
 14  
 import org.mule.providers.http.i18n.HttpMessages;
 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  0
 public class JettyReceiverServlet extends MuleReceiverServlet
 23  
 {
 24  
     /**
 25  
      * Serial version
 26  
      */
 27  
     private static final long serialVersionUID = 238326861089137293L;
 28  
 
 29  
     private AbstractMessageReceiver receiver;
 30  
 
 31  
     protected void doInit(ServletConfig servletConfig) throws ServletException
 32  
     {
 33  0
         receiver = (AbstractMessageReceiver)servletConfig.getServletContext().getAttribute("messageReceiver");
 34  0
         if (receiver == null)
 35  
         {
 36  0
             throw new ServletException(HttpMessages.receiverPropertyNotSet().toString());
 37  
         }
 38  0
     }
 39  
 
 40  
     protected AbstractMessageReceiver getReceiverForURI(HttpServletRequest httpServletRequest)
 41  
         throws EndpointException
 42  
     {
 43  0
         return receiver;
 44  
     }
 45  
 }