FileDocCategorySizeDatePackage
ForwardException.javaAPI DocJava SE 5 API1426Fri Aug 26 14:54:40 BST 2005com.sun.corba.se.spi.protocol

ForwardException

public class ForwardException extends RuntimeException
Thrown to signal an OBJECT_FORWARD or LOCATION_FORWARD

Fields Summary
private com.sun.corba.se.spi.orb.ORB
orb
private org.omg.CORBA.Object
obj
private com.sun.corba.se.spi.ior.IOR
ior
Constructors Summary
public ForwardException(com.sun.corba.se.spi.orb.ORB orb, com.sun.corba.se.spi.ior.IOR ior)

        super();

	this.orb = orb ;
	this.obj = null ;
	this.ior = ior ;
    
public ForwardException(com.sun.corba.se.spi.orb.ORB orb, org.omg.CORBA.Object obj)

        super();

	// This check is done early so that no attempt
	// may be made to do a location forward to a local
	// object.  Doing this lazily would allow 
	// forwarding to locals in some restricted cases.
	if (obj instanceof org.omg.CORBA.LocalObject)
	    throw new BAD_PARAM() ;

	this.orb = orb ;
	this.obj = obj ;
	this.ior = null ;
    
Methods Summary
public synchronized com.sun.corba.se.spi.ior.IORgetIOR()

	if (ior == null) {
	    ior = ORBUtility.getIOR( obj ) ;
	}

	return ior ;
    
public synchronized org.omg.CORBA.ObjectgetObject()

	if (obj == null) {
	    obj = ORBUtility.makeObjectReference( ior ) ;
	}

	return obj ;