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  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.module.ibeans.spi.support;
 8  
 
 9  
 import org.mule.api.endpoint.ImmutableEndpoint;
 10  
 import org.mule.api.endpoint.InboundEndpoint;
 11  
 import org.mule.component.DefaultInterfaceBinding;
 12  
 
 13  
 /**
 14  
  * Used for making a request from a message dispatcher
 15  
  */
 16  0
 public class DefaultRequestInterfaceBinding extends DefaultInterfaceBinding
 17  
 {
 18  
 
 19  
     // The router used to actually request the message
 20  
     protected InboundEndpoint inboundEndpoint;
 21  
 
 22  
     public void setEndpoint(ImmutableEndpoint e)
 23  
     {
 24  0
         if (e instanceof InboundEndpoint)
 25  
         {
 26  0
             inboundEndpoint = (InboundEndpoint) e;
 27  
 
 28  
         }
 29  
         else
 30  
         {
 31  0
             throw new IllegalArgumentException("An inbound endpoint is required for Request Interface binding");
 32  
         }
 33  0
     }
 34  
 
 35  
     public ImmutableEndpoint getEndpoint()
 36  
     {
 37  0
         return inboundEndpoint;
 38  
     }
 39  
 }