org.jacorb.orb.giop
Class ServiceContextTransportingOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.omg.CORBA.portable.OutputStream
          extended byorg.omg.CORBA_2_3.portable.OutputStream
              extended byorg.jacorb.orb.CDROutputStream
                  extended byorg.jacorb.orb.giop.MessageOutputStream
                      extended byorg.jacorb.orb.giop.ServiceContextTransportingOutputStream
Direct Known Subclasses:
ReplyOutputStream, RequestOutputStream

public class ServiceContextTransportingOutputStream
extends MessageOutputStream

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

Version:
$Id: ServiceContextTransportingOutputStream.java,v 1.19 2004/01/06 15:50:45 nick.cross Exp $
Author:
Nicolas Noffke

Field Summary
 
Fields inherited from class org.jacorb.orb.CDROutputStream
buffer, giop_minor
 
Constructor Summary
ServiceContextTransportingOutputStream()
           
 
Method Summary
 void addServiceContext(ServiceContext ctx)
           
 byte[] getBody()
          private hack...
 void insertMsgSize()
           
protected  void markHeaderEnd()
          GIOP 1.2 requires the message body to start on an 8 byte border, while 1.0/1.1 does not.
 void write_to(GIOPConnection conn)
           
 
Methods inherited from class org.jacorb.orb.giop.MessageOutputStream
insertMsgSize, writeGIOPMsgHeader
 
Methods inherited from class org.jacorb.orb.CDROutputStream
beginEncapsulatedArray, beginEncapsulation, close, create_input_stream, endEncapsulation, finalize, getBufferCopy, getGIOPMinor, increaseSize, orb, reduceSize, reset, setBuffer, setBufferWithoutReset, setCodeSet, setGIOPMinor, size, skip, write_abstract_interface, write_any, write_boolean_array, write_boolean, write_char_array, write_char, write_double_array, write_double, write_fixed, write_float_array, write_float, write_IOR, write_long_array, write_long, write_longlong_array, write_longlong, write_Object, write_octet_array, write_octet, write_Principal, write_short_array, write_short, write_string, write_TypeCode, write_ulong_array, write_ulong, write_ulonglong_array, write_ulonglong, write_ushort_array, write_ushort, write_value, write_value, write_value, write_value, write_value, write_wchar_array, write_wchar, write_wstring, write
 
Methods inherited from class org.omg.CORBA.portable.OutputStream
write_Context, write_fixed, write
 
Methods inherited from class java.io.OutputStream
flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceContextTransportingOutputStream

public ServiceContextTransportingOutputStream()
Method Detail

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.


insertMsgSize

public void insertMsgSize()
Overrides:
insertMsgSize in class MessageOutputStream

write_to

public void write_to(GIOPConnection conn)
              throws java.io.IOException
Overrides:
write_to in class MessageOutputStream
Throws:
java.io.IOException

addServiceContext

public void addServiceContext(ServiceContext ctx)

getBody

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