org.omg.PortableServer.ForwardRequest Java Examples

The following examples show how to use org.omg.PortableServer.ForwardRequest. 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 File: ServantManagerImpl.java    From hottub with 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 #2
Source File: POAPolicyMediatorBase.java    From TencentKona-8 with GNU General Public License v2.0 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 #3
Source File: POAImpl.java    From openjdk-jdk8u with 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 #4
Source File: POAPolicyMediatorImpl_R_UDS.java    From openjdk-jdk8u with GNU General Public License v2.0 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 #5
Source File: POAPolicyMediatorBase.java    From openjdk-jdk8u with GNU General Public License v2.0 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 #6
Source File: ServantManagerImpl.java    From openjdk-jdk8u-backup with 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 #7
Source File: POAPolicyMediatorImpl_NR_UDS.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 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 #8
Source File: POAImpl.java    From openjdk-jdk8u-backup with 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
Source File: POAPolicyMediatorImpl_R_UDS.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 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 #10
Source File: POAPolicyMediatorBase.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 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 #11
Source File: ServantManagerImpl.java    From openjdk-jdk9 with 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
Source File: POAPolicyMediatorImpl_NR_UDS.java    From openjdk-jdk9 with GNU General Public License v2.0 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 #13
Source File: POAImpl.java    From openjdk-jdk9 with 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
Source File: POAPolicyMediatorImpl_R_UDS.java    From openjdk-jdk9 with GNU General Public License v2.0 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 #15
Source File: POAPolicyMediatorBase.java    From openjdk-jdk9 with GNU General Public License v2.0 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 #16
Source File: POAPolicyMediatorImpl_NR_UDS.java    From jdk1.8-source-analysis with Apache License 2.0 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 #17
Source File: POAPolicyMediatorImpl_NR_UDS.java    From hottub with GNU General Public License v2.0 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 File: POAImpl.java    From hottub with 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 #19
Source File: POAPolicyMediatorImpl_R_UDS.java    From hottub with GNU General Public License v2.0 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 File: POAPolicyMediatorBase.java    From hottub with GNU General Public License v2.0 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
Source File: ServantManagerImpl.java    From openjdk-8-source with 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 #22
Source File: POAPolicyMediatorImpl_NR_UDS.java    From openjdk-8-source with GNU General Public License v2.0 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 #23
Source File: POAImpl.java    From openjdk-8-source with 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
Source File: POAPolicyMediatorImpl_R_UDS.java    From openjdk-8-source with GNU General Public License v2.0 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 #25
Source File: POAPolicyMediatorBase.java    From openjdk-8-source with GNU General Public License v2.0 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 #26
Source File: ServantManagerImpl.java    From openjdk-8 with 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 #27
Source File: POAPolicyMediatorImpl_NR_UDS.java    From openjdk-8 with GNU General Public License v2.0 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 #28
Source File: POAImpl.java    From openjdk-8 with 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
Source File: POAPolicyMediatorImpl_R_UDS.java    From openjdk-8 with GNU General Public License v2.0 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 #30
Source File: POAPolicyMediatorBase.java    From openjdk-8 with GNU General Public License v2.0 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 ;
}