org.jacorb.orb.giop

Class ServiceContextTransportingOutputStream

public class ServiceContextTransportingOutputStream extends MessageOutputStream

ServiceContextTransportingOutputStream.java Created: Sat Aug 18 12:12:22 2002

Version: $Id: ServiceContextTransportingOutputStream.java,v 1.21 2006/05/12 14:39:53 alphonse.bendt Exp $

Author: Nicolas Noffke

Constructor Summary
ServiceContextTransportingOutputStream()
ServiceContextTransportingOutputStream(ORB orb)
Method Summary
voidaddServiceContext(ServiceContext ctx)
byte[]getBody()
private hack...
voidinsertMsgSize()
protected voidmarkHeaderEnd()
GIOP 1.2 requires the message body to start on an 8 byte border, while 1.0/1.1 does not.
voidwrite_to(GIOPConnection conn)

Constructor Detail

ServiceContextTransportingOutputStream

public ServiceContextTransportingOutputStream()

ServiceContextTransportingOutputStream

public ServiceContextTransportingOutputStream(ORB orb)

Method Detail

addServiceContext

public void addServiceContext(ServiceContext ctx)

getBody

public byte[] getBody()
private hack...

insertMsgSize

public void insertMsgSize()

markHeaderEnd

protected void markHeaderEnd()
GIOP 1.2 requires the message body to start on an 8 byte border, while 1.0/1.1 does not. Additionally, this padding shall only be performed, if the body is not empty (which we don't know at this stage.

write_to

public void write_to(GIOPConnection conn)