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


Java ForwardRequest类代码示例

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


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

示例1: updateClientRequestDispatcherForward

import org.omg.PortableInterceptor.ForwardRequest; //导入依赖的package包/类
/**
 * Update the client delegate in the event of a ForwardRequest, given the
 * information in the passed-in info object.
 */
private void updateClientRequestDispatcherForward(
    ClientRequestInfoImpl info )
{
    ForwardRequest forwardRequest = info.getForwardRequestException();

    // ForwardRequest may be null if the forwarded IOR is set internal
    // to the ClientRequestDispatcher rather than explicitly through Portable
    // Interceptors.  In this case, we need not update the client
    // delegate ForwardRequest object.
    if( forwardRequest != null ) {
        org.omg.CORBA.Object object = forwardRequest.forward;

        // Convert the forward object into an IOR:
        IOR ior = ORBUtility.getIOR( object ) ;
        info.setLocatedIOR( ior );
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:22,代码来源:InterceptorInvoker.java

示例2: getForwardRequestException

import org.omg.PortableInterceptor.ForwardRequest; //导入依赖的package包/类
/**
 * Retrieves the ForwardRequest object as a ForwardRequest exception.
 */
protected ForwardRequest getForwardRequestException() {
    if( this.forwardRequest == null ) {
        if( this.forwardRequestIOR != null ) {
            // Convert the internal IOR to a forward request exception
            // by creating an object reference.
            org.omg.CORBA.Object obj = iorToObject(this.forwardRequestIOR);
            this.forwardRequest = new ForwardRequest( obj );
        }
    }

    return this.forwardRequest;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:16,代码来源:RequestInfoImpl.java

示例3: receive_request_service_contexts

import org.omg.PortableInterceptor.ForwardRequest; //导入依赖的package包/类
/** @inheritDoc */
public void receive_request_service_contexts(ServerRequestInfo info)
  throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].receive_request_service_contexts(info);
    }
}
 
开发者ID:vilie,项目名称:javify,代码行数:10,代码来源:ServerRequestInterceptors.java

示例4: receive_request

import org.omg.PortableInterceptor.ForwardRequest; //导入依赖的package包/类
/** @inheritDoc */
public void receive_request(ServerRequestInfo info) throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].receive_request(info);
    }
}
 
开发者ID:vilie,项目名称:javify,代码行数:9,代码来源:ServerRequestInterceptors.java

示例5: send_exception

import org.omg.PortableInterceptor.ForwardRequest; //导入依赖的package包/类
/** @inheritDoc */
public void send_exception(ServerRequestInfo info) throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].send_exception(info);
    }
}
 
开发者ID:vilie,项目名称:javify,代码行数:9,代码来源:ServerRequestInterceptors.java

示例6: send_other

import org.omg.PortableInterceptor.ForwardRequest; //导入依赖的package包/类
/** @inheritDoc */
public void send_other(ServerRequestInfo info) throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].send_other(info);
    }
}
 
开发者ID:vilie,项目名称:javify,代码行数:9,代码来源:ServerRequestInterceptors.java

示例7: receive_exception

import org.omg.PortableInterceptor.ForwardRequest; //导入依赖的package包/类
/** @inheritDoc */
public void receive_exception(ClientRequestInfo info)
  throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].receive_exception(info);
    }
}
 
开发者ID:vilie,项目名称:javify,代码行数:10,代码来源:ClientRequestInterceptors.java

示例8: receive_other

import org.omg.PortableInterceptor.ForwardRequest; //导入依赖的package包/类
/** @inheritDoc */
public void receive_other(ClientRequestInfo info) throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].receive_other(info);
    }
}
 
开发者ID:vilie,项目名称:javify,代码行数:9,代码来源:ClientRequestInterceptors.java

示例9: send_request

import org.omg.PortableInterceptor.ForwardRequest; //导入依赖的package包/类
/** @inheritDoc */
public void send_request(ClientRequestInfo info) throws ForwardRequest
{
  for (int i = 0; i < interceptors.length; i++)
    {
      interceptors [ i ].send_request(info);
    }
}
 
开发者ID:vilie,项目名称:javify,代码行数:9,代码来源:ClientRequestInterceptors.java

示例10: showException

import org.omg.PortableInterceptor.ForwardRequest; //导入依赖的package包/类
/**
 * Show exception to interceptor.
 */
void showException(StreamBasedRequest request, BufferredCdrInput input)
  throws ForwardRequest
{
  input.mark(2048);
  request.request.m_exception_id = input.read_string();
  input.reset();

  if (request.request.m_interceptor != null)
    request.request.m_interceptor.receive_exception(request.request.m_info);
}
 
开发者ID:vilie,项目名称:javify,代码行数:14,代码来源:IorDelegate.java


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