当前位置: 首页>>代码示例>>Java>>正文


Java ServerRequest类代码示例

本文整理汇总了Java中org.omg.CORBA.ServerRequest的典型用法代码示例。如果您正苦于以下问题:Java ServerRequest类的具体用法?Java ServerRequest怎么用?Java ServerRequest使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ServerRequest类属于org.omg.CORBA包,在下文中一共展示了ServerRequest类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: doInvoke

import org.omg.CORBA.ServerRequest; //导入依赖的package包/类
private void doInvoke(DynamicImplementation servant,
                      org.omg.CORBA.ServerRequest request)
{
    try {
        servant.invoke(request);
    }
    catch (org.omg.CORBA.SystemException se) {
        throw se;
    }
    catch (Throwable th) {
        if (m_poa_manager.m_orb.m_trace != null) {
            String[] msg =
              { toString(),
               " Exception in servant invoke method, UNKOWN thrown: "
              };
            
            m_trace.printStackTrace(Trace.DEBUG, msg, th);
        }
        throw new org.omg.CORBA.UNKNOWN();
    }
}
 
开发者ID:AlvaroVega,项目名称:TIDorbJ,代码行数:22,代码来源:ExecThread.java

示例2: dispatchRequest

import org.omg.CORBA.ServerRequest; //导入依赖的package包/类
public void dispatchRequest( QueuedResponseHandler responseHandler ) {
    if ( responseHandler != null ){           
        
        if(setPOAKey(responseHandler)) {

         this.rootPOAManager.put( responseHandler );
         
         if ( this.orb.m_trace != null) {
             ServerRequest request = responseHandler.getServerRequest(); 
             this.orb.printTrace(
                 Trace.DEEP_DEBUG, 
                 new String[]{
                    toString(),
                    " Dispatching ",
                    responseHandler.toString()
                    }
             );
         }
        }
    } else {
        throw new BAD_PARAM( "null response handler" );
    }
}
 
开发者ID:AlvaroVega,项目名称:TIDorbJ,代码行数:24,代码来源:RequestDispatcher.java

示例3: invoke

import org.omg.CORBA.ServerRequest; //导入依赖的package包/类
/**
 * The obsolete invocation using server request. Implemented for
 * compatibility reasons, but is it more effectinve to use
 * {@link #_invoke}.
 *
 * @param request a server request.
 */
public void invoke(ServerRequest request)
{
  // "destroy" has a void return type, the two other methods - boolean.
  Streamable result =
    request.operation().equals("destroy") ? null : new BooleanHolder();
  gnu.CORBA.ServiceRequestAdapter.invoke(request, this, result);
}
 
开发者ID:vilie,项目名称:javify,代码行数:15,代码来源:_BindingIteratorImplBase.java

示例4: invoke_is_a

import org.omg.CORBA.ServerRequest; //导入依赖的package包/类
/**
 * Executes "_is_a" request on the ServantDelegate.
 * 
 * @param servant
 *            The target servant of the "_is_a" request.
 * @param request
 *            The queued request to be executed.
 */
private void invoke_is_a(POAImpl poa,
                         org.omg.PortableServer.Servant servant,
                         org.omg.CORBA.ServerRequest request)
{
    try {
        es.tid.TIDorbj.core.poa.ServantDelegate deleg =
            (es.tid.TIDorbj.core.poa.ServantDelegate) servant._get_delegate();
        org.omg.CORBA.ORB orb = poa.m_orb;
        org.omg.CORBA.NVList params = orb.create_list(1);
        org.omg.CORBA.Any $s = orb.create_any();
        $s.type(orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_string));
        params.add_value("s", $s, org.omg.CORBA.ARG_IN.value);
        request.arguments(params);
        String itf = $s.extract_string();
        boolean result = deleg.is_a(servant, itf);
        org.omg.CORBA.Any resultAny = orb.create_any();
        resultAny.insert_boolean(result);
        request.set_result(resultAny);
    } catch (org.omg.CORBA.SystemException se) {
        throw se;
    } catch (Throwable th) {
        if ( this.m_orb.m_trace != null) {
            m_trace.printStackTrace(
                Trace.DEBUG, 
                new String[]{
                    toString(),
                    " Exception in servant invoke \"_is_a\" method, ",
                    "UNKOWN thrown: "
                },
                th
            );
        }
        throw new org.omg.CORBA.UNKNOWN();
    }

}
 
开发者ID:AlvaroVega,项目名称:TIDorbJ,代码行数:45,代码来源:ExecThread.java

示例5: getServerRequest

import org.omg.CORBA.ServerRequest; //导入依赖的package包/类
public ServerRequest getServerRequest() {
    throw new NO_IMPLEMENT( 
        "LocateRequest doesn't have a peer ServerRequest",
        0,
        CompletionStatus.COMPLETED_NO
    );
}
 
开发者ID:AlvaroVega,项目名称:TIDorbJ,代码行数:8,代码来源:LocalLocateResponseHandler.java

示例6: getServerRequest

import org.omg.CORBA.ServerRequest; //导入依赖的package包/类
public ServerRequest getServerRequest() {
    return this.serverRequest;
}
 
开发者ID:AlvaroVega,项目名称:TIDorbJ,代码行数:4,代码来源:LocalResponseHandler.java

示例7: invoke

import org.omg.CORBA.ServerRequest; //导入依赖的package包/类
/**
 * Handle the invocation via passed request.
 *
 * @param request the data structure, used both to pass parameters
 * and return results of the invocation.
 */
public abstract void invoke(ServerRequest request);
 
开发者ID:vilie,项目名称:javify,代码行数:8,代码来源:DynamicImplementation.java

示例8: getServerRequest

import org.omg.CORBA.ServerRequest; //导入依赖的package包/类
public abstract ServerRequest getServerRequest(); 
开发者ID:AlvaroVega,项目名称:TIDorbJ,代码行数:2,代码来源:ResponseHandler.java


注:本文中的org.omg.CORBA.ServerRequest类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。