public abstract class NamingContextExtPOA extends Servant implements NamingContextExtOperations, InvokeHandler
NamingContextExt是NamingContext的NamingContext ,它包含一组名称绑定,其中每个名称是唯一的,并且是可互操作命名服务的一部分。
不同的名称可以在相同或不同的上下文中同时绑定到一个对象。
使用NamingContextExt ,您可以使用基于URL的名称进行绑定和解析。
| Constructor and Description |
|---|
NamingContextExtPOA() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
_all_interfaces(POA poa, byte[] objectId)
由ORB用于从仆人获取完整的类型信息。
|
OutputStream |
_invoke(String $method, InputStream in, ResponseHandler $rh)
由ORB调用,向仆人发出请求。
|
NamingContextExt |
_this() |
NamingContextExt |
_this(ORB orb) |
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolve_str, to_name, to_string, to_urlbind_context, bind_new_context, bind, destroy, list, new_context, rebind_context, rebind, resolve, unbindpublic OutputStream _invoke(String $method, InputStream in, ResponseHandler $rh)
InvokeHandler
1.确定正确的方法,并从InputStream中解组参数。
2.调用方法实现。
3.如果没有用户异常,请使用ResponseHandler创建正常回复。
4.如果发生用户异常,请使用ResponseHandler创建异常回复。
5.Massars回复ResponseHandler返回的OutputStream。
6.将OutputStream返回给ORB。
_invoke在接口
InvokeHandler
$method - 方法名称。
in - 包含
InputStream参数的InputStream。
$rh -该
ResponseHandler servant用来构造正确答复
OutputStream创建的OutputStream包含编组的回复
public String[] _all_interfaces(POA poa, byte[] objectId)
Servant
_all_interfaces在
Servant
poa - 与仆人关联的POA。
objectId - 是与该仆人关联的对象对应的id。
public NamingContextExt _this()
public NamingContextExt _this(ORB orb)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.