Skip navigation links
Java™ Platform
Standard Ed. 8

Package org.omg.PortableInterceptor

提供一种注册ORB钩子的机制,ORB服务可以通过该钩子拦截ORB的正常执行流程。

See: 描述

Package org.omg.PortableInterceptor Description

提供一种注册ORB钩子的机制,ORB服务可以通过该钩子拦截ORB的正常执行流程。

拦截器类型

目前有三种类型的拦截器可以注册: 请参阅类别ORBInitializer的javadocs,了解如何注册拦截器。

包装中的已知限制/未实现的方法org.omg.PortableInterceptor

  • RequestInfo
    • sync_scope(): Always returns SYNC_WITH_TRANSPORT
    • arguments(): Only supported for DII/DSI calls
    • exceptions(): Only supported for DII calls on client side. Not supported on server-side.
    • contexts(): Only supported for DII calls on client side. Not supported on server-side since our ORB does not send contexts.
    • operation_context(): Only supported for DII calls on client side. Not supported on server-side since ORB does not send contexts.
    • result(): Only supported for DII/DSI calls
  • ClientRequestInfo
    • received_exception_id(): Always returns null in the DII case
    • get_request_policy(int type): Not implemented.
  • ServerRequestInfo
    • sending_exception(): Does not support user exceptions on the server side in non-DSI case.

包装规格

有关官方OMG规范的支持部分的精确列表,Java [tm] Platform,Standard Edition 6符合,请参阅Official Specifications for CORBA support in Java SE 6

从以下版本开始:
1.4
Skip navigation links
Java™ Platform
Standard Ed. 8