1 package org.jacorb.orb.giop; 2 21 22 import java.io.*; 23 import org.omg.CORBA.MARSHAL ; 24 import org.omg.GIOP.*; 25 import org.jacorb.orb.*; 26 27 32 33 public class LocateReplyOutputStream 34 extends MessageOutputStream 35 { 36 public LocateReplyOutputStream ( int request_id, 37 int status, 38 int giop_minor ) 39 { 40 super(); 41 setGIOPMinor( giop_minor ); 42 43 writeGIOPMsgHeader( MsgType_1_1._LocateReply, giop_minor ); 44 45 switch( giop_minor ) 46 { 47 case 0 : 48 { 49 } 51 case 1 : 52 { 53 59 LocateReplyHeader_1_0 repl_hdr = 61 new LocateReplyHeader_1_0( request_id, 62 LocateStatusType_1_0.from_int( status )); 63 64 LocateReplyHeader_1_0Helper.write( this, repl_hdr ); 65 66 break; 67 } 68 case 2 : 69 { 70 LocateReplyHeader_1_2 repl_hdr = 72 new LocateReplyHeader_1_2( request_id, 73 LocateStatusType_1_2.from_int( status )); 74 75 LocateReplyHeader_1_2Helper.write( this, repl_hdr ); 76 77 break; 78 } 79 default : 80 { 81 throw new MARSHAL ( "Unknown GIOP minor: " + giop_minor ); 82 } 83 } 84 } 85 } 86 | Popular Tags |