Coverage Report - org.mule.transport.tcp.protocols.MuleMessageDirectProtocol
 
Classes in this File Line Coverage Branch Coverage Complexity
MuleMessageDirectProtocol
0%
0/4
N/A
0
 
 1  
 /*
 2  
  * $Id: MuleMessageDirectProtocol.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.transport.tcp.protocols;
 12  
 
 13  
 import java.io.IOException;
 14  
 import java.io.InputStream;
 15  
 import java.io.OutputStream;
 16  
 
 17  
 /**
 18  
  * This Protocol will send the actual Mule Message over the TCP channel, and in this
 19  
  * way we are preserving any headers which might be needed, for example Correlation
 20  
  * IDs in order to be able to aggregate messages after chunking.  Data are read until
 21  
  * no more are (momentarily) available.
 22  
  */
 23  0
 public class MuleMessageDirectProtocol extends DirectProtocol
 24  
 {
 25  
 
 26  
     @Override
 27  
     public Object read(InputStream is) throws IOException
 28  
     {
 29  0
         return MuleMessageWorker.doRead(super.read(is));
 30  
     }
 31  
 
 32  
     @Override
 33  
     public void write(OutputStream os, Object data) throws IOException
 34  
     {
 35  0
         super.write(os, MuleMessageWorker.doWrite());
 36  0
     }
 37  
 
 38  
 }