Java Code Examples for org.omg.PortableServer.ForwardRequest

The following examples show how to use org.omg.PortableServer.ForwardRequest. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: jdk1.8-source-analysis   Source File: ServantManagerImpl.java    License: Apache License 2.0 5 votes vote down vote up
public Servant preinvoke(byte[] oid, POA adapter, String operation,
                         CookieHolder cookie) throws ForwardRequest
{

    String objKey = new String(oid);

    Servant servant = (Servant) contexts.get(objKey);

    if (servant == null)
    {
             servant =  readInContext(objKey);
    }

    return servant;
}
 
Example 2
protected java.lang.Object internalGetServant( byte[] id,
    String operation ) throws ForwardRequest
{
    if (defaultServant == null)
        throw poa.invocationWrapper().poaNoDefaultServant() ;

    return defaultServant;
}
 
Example 3
Source Project: jdk1.8-source-analysis   Source File: POAImpl.java    License: Apache License 2.0 5 votes vote down vote up
public void getInvocationServant( OAInvocationInfo info )
{
    try {
        lock() ;

        if (debug) {
            ORBUtility.dprint( this,
                "Calling getInvocationServant on poa " + this ) ;
        }

        java.lang.Object servant = null ;

        try {
            servant = mediator.getInvocationServant( info.id(),
                info.getOperation() );
        } catch (ForwardRequest freq) {
            throw new ForwardException( getORB(), freq.forward_reference ) ;
        }

        info.setServant( servant ) ;
    } finally {
        if (debug) {
            ORBUtility.dprint( this,
                "Exiting getInvocationServant on poa " + this ) ;
        }

        unlock() ;
    }
}
 
Example 4
protected java.lang.Object internalGetServant( byte[] id,
    String operation ) throws ForwardRequest
{
    Servant servant = internalIdToServant( id ) ;
    if (servant == null)
        servant = defaultServant ;

    if (servant == null)
        throw poa.invocationWrapper().poaNoDefaultServant() ;

    return servant ;
}
 
Example 5
public final java.lang.Object getInvocationServant( byte[] id,
    String operation ) throws ForwardRequest
{
    java.lang.Object result = internalGetServant( id, operation ) ;

    return result ;
}
 
Example 6
public Servant preinvoke(byte[] oid, POA adapter, String operation,
                         CookieHolder cookie) throws ForwardRequest
{

    String objKey = new String(oid);

    Servant servant = (Servant) contexts.get(objKey);

    if (servant == null)
    {
             servant =  readInContext(objKey);
    }

    return servant;
}
 
Example 7
protected java.lang.Object internalGetServant( byte[] id,
    String operation ) throws ForwardRequest
{
    if (defaultServant == null)
        throw poa.invocationWrapper().poaNoDefaultServant() ;

    return defaultServant;
}
 
Example 8
Source Project: TencentKona-8   Source File: POAImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void getInvocationServant( OAInvocationInfo info )
{
    try {
        lock() ;

        if (debug) {
            ORBUtility.dprint( this,
                "Calling getInvocationServant on poa " + this ) ;
        }

        java.lang.Object servant = null ;

        try {
            servant = mediator.getInvocationServant( info.id(),
                info.getOperation() );
        } catch (ForwardRequest freq) {
            throw new ForwardException( getORB(), freq.forward_reference ) ;
        }

        info.setServant( servant ) ;
    } finally {
        if (debug) {
            ORBUtility.dprint( this,
                "Exiting getInvocationServant on poa " + this ) ;
        }

        unlock() ;
    }
}
 
Example 9
protected java.lang.Object internalGetServant( byte[] id,
    String operation ) throws ForwardRequest
{
    Servant servant = internalIdToServant( id ) ;
    if (servant == null)
        servant = defaultServant ;

    if (servant == null)
        throw poa.invocationWrapper().poaNoDefaultServant() ;

    return servant ;
}
 
Example 10
public final java.lang.Object getInvocationServant( byte[] id,
    String operation ) throws ForwardRequest
{
    java.lang.Object result = internalGetServant( id, operation ) ;

    return result ;
}
 
Example 11
Source Project: jdk8u60   Source File: ServantManagerImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public Servant preinvoke(byte[] oid, POA adapter, String operation,
                         CookieHolder cookie) throws ForwardRequest
{

    String objKey = new String(oid);

    Servant servant = (Servant) contexts.get(objKey);

    if (servant == null)
    {
             servant =  readInContext(objKey);
    }

    return servant;
}
 
Example 12
protected java.lang.Object internalGetServant( byte[] id,
    String operation ) throws ForwardRequest
{
    if (defaultServant == null)
        throw poa.invocationWrapper().poaNoDefaultServant() ;

    return defaultServant;
}
 
Example 13
Source Project: jdk8u60   Source File: POAImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void getInvocationServant( OAInvocationInfo info )
{
    try {
        lock() ;

        if (debug) {
            ORBUtility.dprint( this,
                "Calling getInvocationServant on poa " + this ) ;
        }

        java.lang.Object servant = null ;

        try {
            servant = mediator.getInvocationServant( info.id(),
                info.getOperation() );
        } catch (ForwardRequest freq) {
            throw new ForwardException( getORB(), freq.forward_reference ) ;
        }

        info.setServant( servant ) ;
    } finally {
        if (debug) {
            ORBUtility.dprint( this,
                "Exiting getInvocationServant on poa " + this ) ;
        }

        unlock() ;
    }
}
 
Example 14
protected java.lang.Object internalGetServant( byte[] id,
    String operation ) throws ForwardRequest
{
    Servant servant = internalIdToServant( id ) ;
    if (servant == null)
        servant = defaultServant ;

    if (servant == null)
        throw poa.invocationWrapper().poaNoDefaultServant() ;

    return servant ;
}
 
Example 15
public final java.lang.Object getInvocationServant( byte[] id,
    String operation ) throws ForwardRequest
{
    java.lang.Object result = internalGetServant( id, operation ) ;

    return result ;
}
 
Example 16
Source Project: JDKSourceCode1.8   Source File: ServantManagerImpl.java    License: MIT License 5 votes vote down vote up
public Servant preinvoke(byte[] oid, POA adapter, String operation,
                         CookieHolder cookie) throws ForwardRequest
{

    String objKey = new String(oid);

    Servant servant = (Servant) contexts.get(objKey);

    if (servant == null)
    {
             servant =  readInContext(objKey);
    }

    return servant;
}
 
Example 17
Source Project: JDKSourceCode1.8   Source File: POAPolicyMediatorImpl_NR_UDS.java    License: MIT License 5 votes vote down vote up
protected java.lang.Object internalGetServant( byte[] id,
    String operation ) throws ForwardRequest
{
    if (defaultServant == null)
        throw poa.invocationWrapper().poaNoDefaultServant() ;

    return defaultServant;
}
 
Example 18
Source Project: JDKSourceCode1.8   Source File: POAImpl.java    License: MIT License 5 votes vote down vote up
public void getInvocationServant( OAInvocationInfo info )
{
    try {
        lock() ;

        if (debug) {
            ORBUtility.dprint( this,
                "Calling getInvocationServant on poa " + this ) ;
        }

        java.lang.Object servant = null ;

        try {
            servant = mediator.getInvocationServant( info.id(),
                info.getOperation() );
        } catch (ForwardRequest freq) {
            throw new ForwardException( getORB(), freq.forward_reference ) ;
        }

        info.setServant( servant ) ;
    } finally {
        if (debug) {
            ORBUtility.dprint( this,
                "Exiting getInvocationServant on poa " + this ) ;
        }

        unlock() ;
    }
}
 
Example 19
Source Project: JDKSourceCode1.8   Source File: POAPolicyMediatorImpl_R_UDS.java    License: MIT License 5 votes vote down vote up
protected java.lang.Object internalGetServant( byte[] id,
    String operation ) throws ForwardRequest
{
    Servant servant = internalIdToServant( id ) ;
    if (servant == null)
        servant = defaultServant ;

    if (servant == null)
        throw poa.invocationWrapper().poaNoDefaultServant() ;

    return servant ;
}
 
Example 20
Source Project: JDKSourceCode1.8   Source File: POAPolicyMediatorBase.java    License: MIT License 5 votes vote down vote up
public final java.lang.Object getInvocationServant( byte[] id,
    String operation ) throws ForwardRequest
{
    java.lang.Object result = internalGetServant( id, operation ) ;

    return result ;
}
 
Example 21
public Servant preinvoke(byte[] oid, POA adapter, String operation,
                         CookieHolder cookie) throws ForwardRequest
{

    String objKey = new String(oid);

    Servant servant = (Servant) contexts.get(objKey);

    if (servant == null)
    {
             servant =  readInContext(objKey);
    }

    return servant;
}
 
Example 22
protected java.lang.Object internalGetServant( byte[] id,
    String operation ) throws ForwardRequest
{
    if (defaultServant == null)
        throw poa.invocationWrapper().poaNoDefaultServant() ;

    return defaultServant;
}
 
Example 23
Source Project: openjdk-jdk8u   Source File: POAImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void getInvocationServant( OAInvocationInfo info )
{
    try {
        lock() ;

        if (debug) {
            ORBUtility.dprint( this,
                "Calling getInvocationServant on poa " + this ) ;
        }

        java.lang.Object servant = null ;

        try {
            servant = mediator.getInvocationServant( info.id(),
                info.getOperation() );
        } catch (ForwardRequest freq) {
            throw new ForwardException( getORB(), freq.forward_reference ) ;
        }

        info.setServant( servant ) ;
    } finally {
        if (debug) {
            ORBUtility.dprint( this,
                "Exiting getInvocationServant on poa " + this ) ;
        }

        unlock() ;
    }
}
 
Example 24
protected java.lang.Object internalGetServant( byte[] id,
    String operation ) throws ForwardRequest
{
    Servant servant = internalIdToServant( id ) ;
    if (servant == null)
        servant = defaultServant ;

    if (servant == null)
        throw poa.invocationWrapper().poaNoDefaultServant() ;

    return servant ;
}
 
Example 25
public final java.lang.Object getInvocationServant( byte[] id,
    String operation ) throws ForwardRequest
{
    java.lang.Object result = internalGetServant( id, operation ) ;

    return result ;
}
 
Example 26
public Servant preinvoke(byte[] oid, POA adapter, String operation,
                         CookieHolder cookie) throws ForwardRequest
{

    String objKey = new String(oid);

    Servant servant = (Servant) contexts.get(objKey);

    if (servant == null)
    {
             servant =  readInContext(objKey);
    }

    return servant;
}
 
Example 27
protected java.lang.Object internalGetServant( byte[] id,
    String operation ) throws ForwardRequest
{
    if (defaultServant == null)
        throw poa.invocationWrapper().poaNoDefaultServant() ;

    return defaultServant;
}
 
Example 28
Source Project: openjdk-jdk8u-backup   Source File: POAImpl.java    License: GNU General Public License v2.0 5 votes vote down vote up
public void getInvocationServant( OAInvocationInfo info )
{
    try {
        lock() ;

        if (debug) {
            ORBUtility.dprint( this,
                "Calling getInvocationServant on poa " + this ) ;
        }

        java.lang.Object servant = null ;

        try {
            servant = mediator.getInvocationServant( info.id(),
                info.getOperation() );
        } catch (ForwardRequest freq) {
            throw new ForwardException( getORB(), freq.forward_reference ) ;
        }

        info.setServant( servant ) ;
    } finally {
        if (debug) {
            ORBUtility.dprint( this,
                "Exiting getInvocationServant on poa " + this ) ;
        }

        unlock() ;
    }
}
 
Example 29
protected java.lang.Object internalGetServant( byte[] id,
    String operation ) throws ForwardRequest
{
    Servant servant = internalIdToServant( id ) ;
    if (servant == null)
        servant = defaultServant ;

    if (servant == null)
        throw poa.invocationWrapper().poaNoDefaultServant() ;

    return servant ;
}
 
Example 30
public final java.lang.Object getInvocationServant( byte[] id,
    String operation ) throws ForwardRequest
{
    java.lang.Object result = internalGetServant( id, operation ) ;

    return result ;
}