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


Java ResponseHandler类代码示例

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


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

示例1: _invoke

import org.omg.CORBA.portable.ResponseHandler; //导入依赖的package包/类
/**
 * Our implementation will not call this method. After setting your
 * manager to POA, it will call incarnate and etherialize directly.
 */
public OutputStream _invoke(String method, InputStream input,
                            ResponseHandler handler
                           )
                     throws SystemException
{
  throw new NO_IMPLEMENT();
}
 
开发者ID:vilie,项目名称:javify,代码行数:12,代码来源:ServantLocatorPOA.java

示例2: _invoke

import org.omg.CORBA.portable.ResponseHandler; //导入依赖的package包/类
/**
 * We cannot invoke properly without having parameter info.
 *
 * @throws BAD_OPERATION, always.
 */
public OutputStream _invoke(String method, InputStream input,
                            ResponseHandler handler
                           )
{
  throw new BAD_OPERATION(servant + " is not an InvokeHandler.");
}
 
开发者ID:vilie,项目名称:javify,代码行数:12,代码来源:DynamicImpHandler.java

示例3: _invoke

import org.omg.CORBA.portable.ResponseHandler; //导入依赖的package包/类
/**
 * Forward the call to the wrapped object.
 */
public OutputStream _invoke(String method, InputStream input,
                            ResponseHandler handler
                           )
                     throws SystemException
{
  org.omg.CORBA.portable.InputStream in = null;
  org.omg.CORBA.portable.OutputStream out = null;
  try
    {
      try
        {
          out = ref._request(method, true);

          // Transfer request information.
          int b;
          while ((b = input.read()) >= 0)
            {
              out.write(b);
            }
          in = ref._invoke(out);

          // Read the returned data.
          out = handler.createReply();
          while ((b = in.read()) >= 0)
            {
              out.write(b);
            }
        }
      catch (IOException io_ex)
        {
          MARSHAL m = new MARSHAL();
          m.minor = Minor.Forwarding;
          m.initCause(io_ex);
          throw m;
        }
    }
  catch (ApplicationException ex)
    {
      in = ex.getInputStream();

      String _id = ex.getId();
      throw new MARSHAL(_id, 5101, CompletionStatus.COMPLETED_NO);
    }
  catch (RemarshalException remarsh)
    {
      _invoke(method, input, handler);
    }
  finally
    {
      ref._releaseReply(in);
    }
  return out;
}
 
开发者ID:vilie,项目名称:javify,代码行数:57,代码来源:ForwardedServant.java


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