Coverage Report - org.mule.processor.NullMessageProcessor
 
Classes in this File Line Coverage Branch Coverage Complexity
NullMessageProcessor
0%
0/6
N/A
0
 
 1  
 /*
 2  
  * $Id: NullMessageProcessor.java 20320 2010-11-24 15:03:31Z dfeist $
 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.processor;
 12  
 
 13  
 import org.mule.api.MuleEvent;
 14  
 import org.mule.api.MuleException;
 15  
 import org.mule.api.processor.MessageProcessor;
 16  
 import org.mule.api.processor.MessageProcessorChain;
 17  
 import org.mule.api.processor.policy.Policies;
 18  
 import org.mule.util.ObjectUtils;
 19  
 
 20  
 import java.util.Collections;
 21  
 import java.util.List;
 22  
 
 23  
 
 24  0
 public class NullMessageProcessor implements MessageProcessorChain
 25  
 {
 26  
     public MuleEvent process(MuleEvent event) throws MuleException
 27  
     {
 28  0
         return event;
 29  
     }
 30  
 
 31  
     @Override
 32  
     public String toString()
 33  
     {
 34  0
         return ObjectUtils.toString(this);
 35  
     }
 36  
 
 37  
     public List<MessageProcessor> getMessageProcessors()
 38  
     {
 39  0
         return Collections.emptyList();
 40  
     }
 41  
 
 42  
     public String getName()
 43  
     {
 44  0
         return null;
 45  
     }
 46  
 
 47  
     public Policies getPolicies()
 48  
     {
 49  0
         return new Policies(this);
 50  
     }
 51  
 }