FileDocCategorySizeDatePackage
POACurrent.javaAPI DocJava SE 5 API3828Fri Aug 26 14:54:26 BST 2005com.sun.corba.se.impl.oa.poa

POACurrent

public class POACurrent extends ObjectImpl implements Current

Fields Summary
private ORB
orb
private POASystemException
wrapper
Constructors Summary
public POACurrent(ORB orb)

	this.orb = orb;
	wrapper = POASystemException.get( orb,
	    CORBALogDomains.OA_INVOCATION ) ;
    
Methods Summary
public java.lang.String[]_ids()

        String[] ids = new String[1];
        ids[0] = "IDL:omg.org/PortableServer/Current:1.0";
        return ids;
    
org.omg.PortableServer.ServantLocatorPackage.CookieHoldergetCookieHolder()

	CookieHolder cookieHolder = peekThrowInternal().getCookieHolder();
	throwInternalIfNull(cookieHolder);
	return cookieHolder;
    
public com.sun.corba.se.spi.oa.ObjectAdaptergetOA()

        ObjectAdapter oa = peekThrowInternal().oa();
	throwInternalIfNull(oa);
	return oa;
    
public byte[]getObjectId()

	byte[] objectid = peekThrowInternal().id();
	throwInternalIfNull(objectid);
	return objectid;
    
public java.lang.StringgetOperation()

	String operation = peekThrowInternal().getOperation();
	throwInternalIfNull(operation);
	return operation;
    
org.omg.PortableServer.ServantgetServant()

	Servant servant = (Servant)(peekThrowInternal().getServantContainer());
	// If is OK for the servant to be null.
	// This could happen if POAImpl.getServant is called but
	// POAImpl.internalGetServant throws an exception.
	return servant;
    
public org.omg.PortableServer.POAget_POA()

        POA poa = (POA)(peekThrowNoContext().oa());
	throwNoContextIfNull(poa);
	return poa;
    
public byte[]get_object_id()

	byte[] objectid = peekThrowNoContext().id();
	throwNoContextIfNull(objectid);
	return objectid;
    
private com.sun.corba.se.spi.oa.OAInvocationInfopeekThrowInternal()

	OAInvocationInfo invocationInfo = null;
	try {
	    invocationInfo = orb.peekInvocationInfo() ;
	} catch (EmptyStackException e) {
	    // The completion status is maybe because this could happen
	    // after the servant has been invoked.
	    throw wrapper.poacurrentUnbalancedStack( e ) ;
	}
	return invocationInfo;
    
private com.sun.corba.se.spi.oa.OAInvocationInfopeekThrowNoContext()

	OAInvocationInfo invocationInfo = null;
	try {
	    invocationInfo = orb.peekInvocationInfo() ;
	} catch (EmptyStackException e) {
	    throw new NoContext();
	}
	return invocationInfo;
    
voidsetServant(org.omg.PortableServer.Servant servant)

	peekThrowInternal().setServant( servant );
    
private voidthrowInternalIfNull(java.lang.Object o)

	if ( o == null ) {
	    throw wrapper.poacurrentNullField( CompletionStatus.COMPLETED_MAYBE ) ;
	}
    
private voidthrowNoContextIfNull(java.lang.Object o)

	if ( o == null ) {
	    throw new NoContext();
	}