org.mule.providers.tcp.protocols
Class MuleMessageEOFProtocol
java.lang.Object
org.mule.providers.tcp.protocols.ByteProtocol
org.mule.providers.tcp.protocols.DefaultProtocol
org.mule.providers.tcp.protocols.EOFProtocol
org.mule.providers.tcp.protocols.MuleMessageEOFProtocol
- All Implemented Interfaces:
- TcpProtocol
- public class MuleMessageEOFProtocol
- extends EOFProtocol
This Protocol will send the actual Mule Message over the TCP channel, and in this
way we are preserving any headers which might be needed, for example Correlation
IDs in order to be able to aggregate messages after chunking. Data are read until
the client closes the channel.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MuleMessageEOFProtocol
public MuleMessageEOFProtocol()
read
public Object read(InputStream is)
throws IOException
- Description copied from interface:
TcpProtocol
- Reads the input stream and returns a whole message.
- Specified by:
read
in interface TcpProtocol
- Overrides:
read
in class DefaultProtocol
- Throws:
IOException
write
public void write(OutputStream os,
Object unused)
throws IOException
- Description copied from interface:
TcpProtocol
- Write the specified message to the output stream.
- Specified by:
write
in interface TcpProtocol
- Overrides:
write
in class ByteProtocol
- Throws:
IOException
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.