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

LocateRequestMessage_1_2

public final class LocateRequestMessage_1_2 extends Message_1_2 implements LocateRequestMessage
This implements the GIOP 1.2 LocateRequest header.
author
Ram Jeyaraman 05/14/2000
version
1.0

Fields Summary
private ORB
orb
private ObjectKey
objectKey
private TargetAddress
target
Constructors Summary
LocateRequestMessage_1_2(ORB orb)


    // Constructors

      
        this.orb = orb;
    
LocateRequestMessage_1_2(ORB orb, int _request_id, TargetAddress _target)

        super(Message.GIOPBigMagic, GIOPVersion.V1_2, FLAG_NO_FRAG_BIG_ENDIAN,
            Message.GIOPLocateRequest, 0);
        this.orb = orb;
        request_id = _request_id;
        target = _target;
    
Methods Summary
public voidcallback(com.sun.corba.se.impl.protocol.giopmsgheaders.MessageHandler handler)

        handler.handleInput(this);
    
public com.sun.corba.se.spi.ior.ObjectKeygetObjectKey()

        if (this.objectKey == null) {
	    // this will raise a MARSHAL exception upon errors.
	    this.objectKey = MessageBase.extractObjectKey(target, orb);
        }

	return this.objectKey;
    
public intgetRequestId()

        return this.request_id;
    
public voidread(org.omg.CORBA.portable.InputStream istream)

        super.read(istream);
        this.request_id = istream.read_ulong();
        this.target = TargetAddressHelper.read(istream);
        getObjectKey(); // this does AddressingDisposition check        
    
public voidwrite(org.omg.CORBA.portable.OutputStream ostream)

        super.write(ostream);
        ostream.write_ulong (this.request_id);
        nullCheck(this.target);
        TargetAddressHelper.write(ostream, this.target);