Coverage Report - org.mule.providers.http.servlet.ServletConnector
 
Classes in this File Line Coverage Branch Coverage Complexity
ServletConnector
0%
0/15
N/A
1
 
 1  
 /*
 2  
  * $Id: ServletConnector.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.servlet;
 12  
 
 13  
 import org.mule.providers.AbstractConnector;
 14  
 import org.mule.umo.UMOException;
 15  
 import org.mule.umo.lifecycle.InitialisationException;
 16  
 
 17  
 import java.util.Map;
 18  
 
 19  
 /**
 20  
  * <code>ServletConnector</code> is a channel adapter between Mule and a servlet
 21  
  * engine. It allows the MUleReceiverServlet to look up components interested in
 22  
  * requests it receives via the servlet container.
 23  
  * 
 24  
  * @see MuleReceiverServlet
 25  
  */
 26  
 
 27  
 public class ServletConnector extends AbstractConnector
 28  
 {
 29  
     // The real URL that the servlet container is bound on.
 30  
     // If this is not set the wsdl may not be generated correctly
 31  
     protected String servletUrl;
 32  
 
 33  
     public ServletConnector()
 34  
     {
 35  0
         super();
 36  0
         registerSupportedProtocol("http");
 37  0
         registerSupportedProtocol("https");
 38  0
     }
 39  
 
 40  
 
 41  
     protected void doInitialise() throws InitialisationException
 42  
     {
 43  
         // template method, nothing to do
 44  0
     }
 45  
 
 46  
     protected void doDispose()
 47  
     {
 48  
         // template method
 49  0
     }
 50  
 
 51  
     protected void doConnect() throws Exception
 52  
     {
 53  
         // template method
 54  0
     }
 55  
 
 56  
     protected void doDisconnect() throws Exception
 57  
     {
 58  
         // template method
 59  0
     }
 60  
 
 61  
     protected void doStart() throws UMOException
 62  
     {
 63  
         // template method
 64  0
     }
 65  
 
 66  
     protected void doStop() throws UMOException
 67  
     {
 68  
         // template method
 69  0
     }
 70  
 
 71  
     public String getProtocol()
 72  
     {
 73  0
         return "servlet";
 74  
     }
 75  
 
 76  
     public Map getReceivers()
 77  
     {
 78  0
         return receivers;
 79  
     }
 80  
 
 81  
     public String getServletUrl()
 82  
     {
 83  0
         return servletUrl;
 84  
     }
 85  
 
 86  
     public void setServletUrl(String servletUrl)
 87  
     {
 88  0
         this.servletUrl = servletUrl;
 89  0
     }
 90  
 
 91  
 }