TargetAddress addr = new TargetAddress();
addr.object_key( hdr.object_key );
req_hdr =
new RequestHeader_1_2( hdr.request_id,
Messages.responseFlags( hdr.response_expected ),
reserved,
addr, //target
hdr.operation,
hdr.service_context );
break;
}
case 1 :
{
//GIOP 1.1
RequestHeader_1_1 hdr =
RequestHeader_1_1Helper.read( this );
TargetAddress addr = new TargetAddress();
addr.object_key( hdr.object_key );
req_hdr =
new RequestHeader_1_2( hdr.request_id,
Messages.responseFlags( hdr.response_expected ),
reserved,
addr, //target
hdr.operation,
hdr.service_context );
break;
}
case 2 :
{
//GIOP 1.2
req_hdr = RequestHeader_1_2Helper.read( this );
skipHeaderPadding();
break;
}
default : {
throw new MARSHAL( "Unknown GIOP minor version: " + giop_minor );
}
}
is_locate_request = false;
}
else if( Messages.getMsgType( buffer ) == MsgType_1_1._LocateRequest )
{
switch( giop_minor )
{
case 0 :
{
//GIOP 1.0 = GIOP 1.1, fall through
}
case 1 :
{
//GIOP 1.1
LocateRequestHeader_1_0 locate_req_hdr =
LocateRequestHeader_1_0Helper.read( this );
TargetAddress addr = new TargetAddress();
addr.object_key( locate_req_hdr.object_key );
req_hdr =
new RequestHeader_1_2( locate_req_hdr.request_id,
(byte) 0x03,//response_expected
reserved,
addr,
"_non_existent",
Messages.service_context );
break;
}
case 2 :
{
//GIOP 1.2
LocateRequestHeader_1_2 locate_req_hdr =
LocateRequestHeader_1_2Helper.read( this );
req_hdr =
new RequestHeader_1_2( locate_req_hdr.request_id,
(byte) 0x03,//response_expected
reserved,
locate_req_hdr.target,
"_non_existent",
Messages.service_context );