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 ORB
orb
private Object
obj
private IOR
ior
Constructors Summary
public ForwardException(ORB orb, IOR ior)

        super();

	this.orb = orb ;
	this.obj = null ;
	this.ior = ior ;
    
public ForwardException(ORB orb, 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 ;