FileDocCategorySizeDatePackage
Message_1_2.javaAPI DocJava SE 5 API2139Fri Aug 26 14:54:32 BST 2005com.sun.corba.se.impl.protocol.giopmsgheaders

Message_1_2

public class Message_1_2 extends Message_1_1

Fields Summary
protected int
request_id
Constructors Summary
Message_1_2()


     
Message_1_2(int _magic, com.sun.corba.se.spi.ior.iiop.GIOPVersion _GIOP_version, byte _flags, byte _message_type, int _message_size)


        super(_magic,
              _GIOP_version,
              _flags,
              _message_type,
              _message_size);
    
Methods Summary
public voidunmarshalRequestID(java.nio.ByteBuffer byteBuffer)
The byteBuffer is presumed to have contents of the message already read in. It must have 12 bytes of space at the beginning for the GIOP header, but the header doesn't have to be copied in.

        int b1, b2, b3, b4;

        if (!isLittleEndian()) {
            b1 = (byteBuffer.get(GIOPMessageHeaderLength+0) << 24) & 0xFF000000;
            b2 = (byteBuffer.get(GIOPMessageHeaderLength+1) << 16) & 0x00FF0000;
            b3 = (byteBuffer.get(GIOPMessageHeaderLength+2) << 8)  & 0x0000FF00;
            b4 = (byteBuffer.get(GIOPMessageHeaderLength+3) << 0)  & 0x000000FF;
        } else {
            b1 = (byteBuffer.get(GIOPMessageHeaderLength+3) << 24) & 0xFF000000;
            b2 = (byteBuffer.get(GIOPMessageHeaderLength+2) << 16) & 0x00FF0000;
            b3 = (byteBuffer.get(GIOPMessageHeaderLength+1) << 8)  & 0x0000FF00;
            b4 = (byteBuffer.get(GIOPMessageHeaderLength+0) << 0)  & 0x000000FF;
        }

        this.request_id = (b1 | b2 | b3 | b4);
    
public voidwrite(org.omg.CORBA.portable.OutputStream ostream)

	if (this.encodingVersion == Message.CDR_ENC_VERSION) {
	    super.write(ostream);
	    return;
	}
	GIOPVersion gv = this.GIOP_version; // save
	this.GIOP_version = GIOPVersion.getInstance((byte)13,
						    this.encodingVersion);
	super.write(ostream);
	this.GIOP_version = gv; // restore