Package org.omg.GIOP

Examples of org.omg.GIOP.TargetAddress


                    RequestHeader_1_2 req12 = new RequestHeader_1_2();
                    req12.service_context = req10.service_context;
                    req12.request_id = req10.request_id;
                    req12.response_flags = (byte)(req10.response_expected ? 3 : 0);
                    req12.operation = req10.operation;
                    (req12.target = new TargetAddress()).object_key(req10.object_key);
                    message.request = req12;
                }
                    break;
                case GiopVersion.VERSION_1_1:
                    {
                    RequestHeader_1_1 req11 = RequestHeader_1_1Helper.read(this);
                    RequestHeader_1_2 req12 = new RequestHeader_1_2();
                    req12.service_context = req11.service_context;
                    req12.request_id = req11.request_id;
                    req12.response_flags = (byte)(req11.response_expected ? 3 : 0);
                    req12.operation = req11.operation;
                    (req12.target = new TargetAddress()).object_key(req11.object_key);
                    message.request = req12;
                }
                    break;
                case GiopVersion.VERSION_1_2:
                    message.request = RequestHeader_1_2Helper.read(this);
                    if (_length > _offset)
                    {
                        read_align(8, 0); // parameters are 8-byte aligned (if present)
                    }
                    break;
            }
                if (_gzip)
                {
                    unzip();
                }
                break;
            case MsgType_1_1._Reply:
                message.reply = ReplyHeader_1_2Helper.read(this);
                if (giopVersion >= GiopVersion.VERSION_1_2)
                {
                    if (_length > _offset)
                    {
                        read_align(8, 0); // results are 8-byte aligned (if present)
                    }
                }
                if (_gzip)
                {
                    unzip();
                }
                break;
            case MsgType_1_1._LocateRequest:
            switch (giopVersion)
            {
                case GiopVersion.VERSION_1_0:
                case GiopVersion.VERSION_1_1:
                    {
                    LocateRequestHeader_1_0 req10 = LocateRequestHeader_1_0Helper.read(this);
                    LocateRequestHeader_1_2 req12 = new LocateRequestHeader_1_2();
                    req12.request_id = req10.request_id;
                    (req12.target = new TargetAddress()).object_key(req10.object_key);
                    message.locateRequest = req12;
                }
                    break;
                default:
                    message.locateRequest = LocateRequestHeader_1_2Helper.read(this);
View Full Code Here


        RequestHeader_1_2 request = requestHeader;

        request.request_id = requestid_++;
        request.response_flags = 3;
        request.target = new TargetAddress();
        request.target.object_key(object.$getObjectKey());
        request.operation = method;
        request.service_context = getServiceContext(object, requestKey, retryCount);
        request.reserved = reservedBA;  // Sun's generated org.omg.GIOP.RequestHeader_1_2Helper wants this....
View Full Code Here

                break;
            }
            case 2 :
            {
                //GIOP 1.2
                TargetAddress addr = new TargetAddress();
                addr.object_key( object_key );

                // inlined RequestHeader_1_2Helper.write method

                write_ulong( request_id);
                if (response_expected)
View Full Code Here

                break;
            }
            case 2 :
            {
                //GIOP 1.2
                TargetAddress addr = new TargetAddress();
                addr.object_key( object_key );

                LocateRequestHeader_1_2 req_hdr =
                    new LocateRequestHeader_1_2( request_id, addr );

                LocateRequestHeader_1_2Helper.write( this, req_hdr );
View Full Code Here

                {
                    //GIOP 1.0
                    RequestHeader_1_0 hdr =
                        RequestHeader_1_0Helper.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 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,
View Full Code Here

                {
                    //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 LocateRequestHeader_1_2( locate_req_hdr.request_id,
                                                     addr );
                    break;
View Full Code Here

                break;
            }
            case 2 :
            {
                //GIOP 1.2
                TargetAddress addr = new TargetAddress();
                addr.object_key( object_key );

                // inlined RequestHeader_1_2Helper.write method

                write_ulong( request_id);
                if (response_expected)
View Full Code Here

                {
                    //GIOP 1.0
                    RequestHeader_1_0 hdr =
                        RequestHeader_1_0Helper.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 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,
View Full Code Here

                {
                    //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 LocateRequestHeader_1_2( locate_req_hdr.request_id,
                                                     addr );
                    break;
View Full Code Here

                break;
            }
            case 2 :
            {
                //GIOP 1.2
                TargetAddress addr = new TargetAddress();
                addr.object_key( object_key );

                // inlined RequestHeader_1_2Helper.write method

                write_ulong( request_id);
                if (response_expected)
View Full Code Here

TOP

Related Classes of org.omg.GIOP.TargetAddress

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.