org.omg.CORBA.ContextList Java Examples

The following examples show how to use org.omg.CORBA.ContextList. 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: CorbaConduit.java    From cxf with Apache License 2.0 6 votes vote down vote up
public Request getRequest(CorbaMessage message,
                             String opName,
                             org.omg.CORBA.NVList nvlist,
                             org.omg.CORBA.NamedValue ret,
                             org.omg.CORBA.ExceptionList exList)
    throws Exception {
    Request request = null;
    if (orb == null) {
        prepareOrb();
    }
    ContextList ctxList = orb.create_context_list();
    Context ctx = null;
    try {
        ctx = orb.get_default_context();
    } catch (Exception ex) {
        //ignore?
    }

    org.omg.CORBA.Object targetObj =
        (org.omg.CORBA.Object)message.get(CorbaConstants.CORBA_ENDPOINT_OBJECT);
    if (targetObj != null) {
        request = targetObj._create_request(ctx, opName, nvlist, ret, exList, ctxList);
    }
    return request;
}
 
Example #2
Source File: CorbaClientDelegateImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
Example #3
Source File: CorbaClientDelegateImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
Example #4
Source File: ClientRequestInfoImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
Example #5
Source File: ClientRequestInfoImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
Example #6
Source File: ClientRequestInfoImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
Example #7
Source File: CorbaClientDelegateImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
Example #8
Source File: CorbaClientDelegateImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
Example #9
Source File: ClientRequestInfoImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
Example #10
Source File: CorbaClientDelegateImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
Example #11
Source File: ClientRequestInfoImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
Example #12
Source File: ClientRequestInfoImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
Example #13
Source File: CorbaClientDelegateImpl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
Example #14
Source File: ClientRequestInfoImpl.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
Example #15
Source File: ClientRequestInfoImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
Example #16
Source File: CorbaClientDelegateImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
Example #17
Source File: ClientRequestInfoImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
Example #18
Source File: CorbaClientDelegateImpl.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
public Request create_request(org.omg.CORBA.Object obj,
                              Context ctx,
                              String operation,
                              NVList arg_list,
                              NamedValue result,
                              ExceptionList exclist,
                              ContextList ctxlist)
{
    return new RequestImpl(orb, obj, ctx, operation, arg_list, result,
                           exclist, ctxlist);
}
 
Example #19
Source File: ClientRequestInfoImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * See RequestInfoImpl for javadoc.
 */
public String[] contexts (){
    checkAccess( MID_CONTEXTS );

    if( cachedContexts == null ) {
        if( request == null ) {
            throw stdWrapper.piOperationNotSupported3() ;
        }

        // Get the list of contexts from DII request data, If there are
        // no contexts then this method will return null.
        ContextList ctxList = request.contexts( );
        int count = ctxList.count();
        String[] ctxListToReturn = new String[count];
        try {
            for( int i = 0; i < count; i++ ) {
                ctxListToReturn[i] = ctxList.item( i );
            }
        } catch( Exception e ) {
            throw wrapper.exceptionInContexts( e ) ;
        }

        cachedContexts = ctxListToReturn;
    }

    // Good citizen: In the interest of efficiency, we assume
    // interceptors will be "good citizens" in that they will not
    // modify the contents of the String[] array.

    return cachedContexts;
}
 
Example #20
Source File: StubWrapper.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public Request _create_request( Context ctx, String operation, NVList arg_list,
    NamedValue result, ExceptionList exclist, ContextList ctxlist)
{
    return object._create_request( ctx, operation, arg_list, result,
        exclist, ctxlist ) ;
}
 
Example #21
Source File: ORBSingleton.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public org.omg.CORBA.ContextList create_context_list() {
    return new ContextListImpl(this);
}
 
Example #22
Source File: ORBSingleton.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public org.omg.CORBA.ContextList create_context_list() {
    return new ContextListImpl(this);
}
 
Example #23
Source File: TestOrbImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ContextList create_context_list() {
    return null;
}
 
Example #24
Source File: TestSingletonOrbImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public ContextList create_context_list() {
    return null;
}
 
Example #25
Source File: ORBImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Create a ContextList
 *
 * @result          ContextList created
 */
public synchronized org.omg.CORBA.ContextList create_context_list()
{
    checkShutdownState();
    return new ContextListImpl(this);
}
 
Example #26
Source File: RequestImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public RequestImpl (ORB orb,
                    org.omg.CORBA.Object targetObject,
                    Context ctx,
                    String operationName,
                    NVList argumentList,
                    NamedValue resultContainer,
                    ExceptionList exceptionList,
                    ContextList ctxList)
{

    // initialize the orb
    _orb    = orb;
    _wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.OA_INVOCATION ) ;

    // initialize target, context and operation name
    _target     = targetObject;
    _ctx    = ctx;
    _opName = operationName;

    // initialize argument list if not passed in
    if (argumentList == null)
        _arguments = new NVListImpl(_orb);
    else
        _arguments = argumentList;

    // set result container.
    _result = resultContainer;

    // initialize exception list if not passed in
    if (exceptionList == null)
        _exceptions = new ExceptionListImpl();
    else
        _exceptions = exceptionList;

    // initialize context list if not passed in
    if (ctxList == null)
        _ctxList = new ContextListImpl(_orb);
    else
        _ctxList = ctxList;

    // initialize environment
    _env    = new EnvironmentImpl();

}
 
Example #27
Source File: RequestImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public ContextList contexts()
{
    return _ctxList;
}
 
Example #28
Source File: RequestImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public RequestImpl (ORB orb,
                    org.omg.CORBA.Object targetObject,
                    Context ctx,
                    String operationName,
                    NVList argumentList,
                    NamedValue resultContainer,
                    ExceptionList exceptionList,
                    ContextList ctxList)
{

    // initialize the orb
    _orb    = orb;
    _wrapper = ORBUtilSystemException.get( orb,
        CORBALogDomains.OA_INVOCATION ) ;

    // initialize target, context and operation name
    _target     = targetObject;
    _ctx    = ctx;
    _opName = operationName;

    // initialize argument list if not passed in
    if (argumentList == null)
        _arguments = new NVListImpl(_orb);
    else
        _arguments = argumentList;

    // set result container.
    _result = resultContainer;

    // initialize exception list if not passed in
    if (exceptionList == null)
        _exceptions = new ExceptionListImpl();
    else
        _exceptions = exceptionList;

    // initialize context list if not passed in
    if (ctxList == null)
        _ctxList = new ContextListImpl(_orb);
    else
        _ctxList = ctxList;

    // initialize environment
    _env    = new EnvironmentImpl();

}
 
Example #29
Source File: StubWrapper.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public Request _create_request( Context ctx, String operation, NVList arg_list,
    NamedValue result, ExceptionList exclist, ContextList ctxlist)
{
    return object._create_request( ctx, operation, arg_list, result,
        exclist, ctxlist ) ;
}
 
Example #30
Source File: StubWrapper.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public Request _create_request( Context ctx, String operation, NVList arg_list,
    NamedValue result, ExceptionList exclist, ContextList ctxlist)
{
    return object._create_request( ctx, operation, arg_list, result,
        exclist, ctxlist ) ;
}