Coverage Report - org.mule.module.ibeans.spi.support.DefaultRequestInterfaceBinding
 
Classes in this File Line Coverage Branch Coverage Complexity
DefaultRequestInterfaceBinding
0%
0/6
0%
0/2
2
 
 1  
 /*
 2  
  * $Id: DefaultRequestInterfaceBinding.java 19191 2010-08-25 21:05:23Z tcarlson $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.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  
 package org.mule.module.ibeans.spi.support;
 11  
 
 12  
 import org.mule.api.endpoint.ImmutableEndpoint;
 13  
 import org.mule.api.endpoint.InboundEndpoint;
 14  
 import org.mule.component.DefaultInterfaceBinding;
 15  
 
 16  
 /**
 17  
  * Used for making a request from a message dispatcher
 18  
  */
 19  0
 public class DefaultRequestInterfaceBinding extends DefaultInterfaceBinding
 20  
 {
 21  
 
 22  
     // The router used to actually request the message
 23  
     protected InboundEndpoint inboundEndpoint;
 24  
 
 25  
     public void setEndpoint(ImmutableEndpoint e)
 26  
     {
 27  0
         if (e instanceof InboundEndpoint)
 28  
         {
 29  0
             inboundEndpoint = (InboundEndpoint) e;
 30  
 
 31  
         }
 32  
         else
 33  
         {
 34  0
             throw new IllegalArgumentException("An inbound endpoint is required for Request Interface binding");
 35  
         }
 36  0
     }
 37  
 
 38  
     public ImmutableEndpoint getEndpoint()
 39  
     {
 40  0
         return inboundEndpoint;
 41  
     }
 42  
 }