Coverage Report - org.mule.module.cxf.builder.AbstractClientMessageProcessorBuilder
 
Classes in this File Line Coverage Branch Coverage Complexity
AbstractClientMessageProcessorBuilder
0%
0/7
N/A
0
 
 1  
 /*
 2  
  * $Id: AbstractClientMessageProcessorBuilder.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  
 
 11  
 package org.mule.module.cxf.builder;
 12  
 
 13  
 import org.mule.module.cxf.support.StreamClosingInterceptor;
 14  
 
 15  
 import org.apache.cxf.endpoint.Client;
 16  
 
 17  
 /**
 18  
  * An abstract builder for non proxy clients.
 19  
  */
 20  0
 public abstract class AbstractClientMessageProcessorBuilder extends AbstractOutboundMessageProcessorBuilder
 21  
 {
 22  
     protected Class<?> serviceClass;
 23  
     
 24  
     @Override
 25  
     protected void configureClient(Client client)
 26  
     {
 27  
         // EE-1806/MULE-4404
 28  0
         client.getInInterceptors().add(new StreamClosingInterceptor());
 29  0
         client.getInFaultInterceptors().add(new StreamClosingInterceptor());
 30  0
     }
 31  
     
 32  
     public void setServiceClass(Class<?> serviceClass)
 33  
     {
 34  0
         this.serviceClass = serviceClass;
 35  0
     }
 36  
 
 37  
     public Class<?> getServiceClass()
 38  
     {
 39  0
         return serviceClass;
 40  
     }
 41  
 }