public MessageMediator finishCreatingMessageMediator(Broker broker,
Connection conn, MessageMediator messageMediator)
{
ORB orb = (ORB) broker;
CorbaConnection connection = (CorbaConnection) conn;
CorbaMessageMediator corbaMessageMediator =
(CorbaMessageMediator)messageMediator;
if (orb.transportDebugFlag) {
dprint(
".finishCreatingMessageMediator: waiting for message body on connection: "
+ connection);
}
Message msg = corbaMessageMediator.getDispatchHeader();
msg.setByteBuffer(corbaMessageMediator.getDispatchBuffer());
// read giop body only
msg = MessageBase.readGIOPBody(orb, connection, msg);
ByteBuffer byteBuffer = msg.getByteBuffer();
msg.setByteBuffer(null);
corbaMessageMediator.setDispatchHeader(msg);
corbaMessageMediator.setDispatchBuffer(byteBuffer);
return corbaMessageMediator;
}