67 lines
11 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="header">
<div class="subTitle">
org.omg.PortableInterceptor
</div>
<h2 class="title" title="Interface ServerRequestInfo">Interface ServerRequestInfo</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
All Superinterfaces:
</dt>
<dd>
<span><a href="../../../org/omg/CORBA/portable/IDLEntity.html" title="界面在org.omg.CORBA.portable中">IDLEntity</a> <a href="../../../org/omg/CORBA/Object.html" title="在org.omg.CORBA中的接口">Object</a> <a href="../../../org/omg/PortableInterceptor/RequestInfo.html" title="在org.omg.PortableInterceptor中的接口">RequestInfo</a> <a href="../../../org/omg/PortableInterceptor/RequestInfoOperations.html" title="在org.omg.PortableInterceptor中的接口">RequestInfoOperations</a> <a href="../../../java/io/Serializable.html" title="java.io中的接口">Serializable</a> <a href="../../../org/omg/PortableInterceptor/ServerRequestInfoOperations.html" title="在org.omg.PortableInterceptor中的接口">ServerRequestInfoOperations</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public interface <span class="typeNameLabel">ServerRequestInfo</span>
extends <a href="../../../org/omg/PortableInterceptor/ServerRequestInfoOperations.html" title="interface in org.omg.PortableInterceptor">ServerRequestInfoOperations</a>, <a href="../../../org/omg/PortableInterceptor/RequestInfo.html" title="interface in org.omg.PortableInterceptor">RequestInfo</a>, <a href="../../../org/omg/CORBA/portable/IDLEntity.html" title="interface in org.omg.CORBA.portable">IDLEntity</a></pre>
<div class="block">
<span>请求信息,可由服务器端请求拦截器访问。</span>
<p> <span>对一些属性和操作<code>ServerRequestInfo</code>是不是在所有的拦截点有效。</span> <span>下表显示每个属性或操作的有效性。</span> <span>如果它无效,尝试访问它将导致<code>BAD_INV_ORDER</code>被抛出与标准的次要代码14。</span> </p>
<p></p>
<span>   receive_request_<br/>service_contexts receive_request send_reply send_exception send_other <i>Inherited from RequestInfo:</i> <p align="left">request_id</p> yes yes yes yes yes <p align="left">operation</p> yes yes yes yes yes <p align="left">arguments</p> no yes<sub>1</sub> yes no<sub>2</sub> no<sub>2</sub> <p align="left">exceptions</p> no yes yes yes yes <p align="left">contexts</p> no yes yes yes yes <p align="left">operation_context</p> no yes yes no no <p align="left">result</p> no no yes no no <p align="left">response_expected</p> yes yes yes yes yes <p align="left">sync_scope</p> yes yes yes yes yes <b>request_id</b> yes yes yes yes yes <b>operation</b> yes yes yes yes yes <b>arguments</b> no yes<sub>1 </sub> yes no<sub>2</sub> no<sub>2</sub> <b>exceptions</b> no yes yes yes yes <b>contexts</b> no yes yes yes yes <b>operation_context</b> no yes yes no no <b>result</b> no no yes no no <b>response_expected</b> yes yes yes yes yes <b>sync_scope</b> yes yes yes yes yes <b>reply_status</b> no no yes yes yes <b>forward_reference</b> no no no no yes<sub>2</sub> <b>get_slot</b> yes yes yes yes yes <b>get_request_service_context</b> yes no yes yes yes <b>get_reply_service_context</b> no no yes yes yes <i>ServerRequestInfo-specific:</i> <b>sending_exception</b> no no no yes no <b>object_id</b> no yes yes yes<sub>3</sub> yes<sub>3</sub> <b>adapter_id</b> no yes yes yes<sub>3</sub> yes<sub>3</sub> <b>server_id</b> no yes yes yes yes <b>orb_id</b> no yes yes yes yes <b>adapter_name</b> no yes yes yes yes <b>target_most_derived_interface</b> no yes no<sub>4</sub> no<sub>4</sub> no<sub>4</sub> <b>get_server_policy</b> yes yes yes yes yes <b>set_slot</b> yes yes yes yes yes <b>target_is_a</b> no yes no<sub>4</sub> no<sub>4</sub> no<sub>4</sub> <b>add_reply_service_context</b> yes yes yes yes yes </span>
<table border="1" summary="Shows the validity of each attribute or operation">
</table>
<ol>
<li> <span><code>ServerRequestInfo</code>传递给<code>receive_request</code>每个参数的列表中都有一个条目无论是在inout还是out中。</span> <span>但是只有in和inout参数才可用。</span> </li>
<li> <span>如果<code>reply_status</code>属性不是<code>LOCATION_FORWARD</code> ,访问此属性将抛出<code>BAD_INV_ORDER</code>与标准的次要代码14。</span> </li>
<li> <span>如果servant定位器导致位置向前或引发异常此属性/操作可能在此截取点中不可用。</span> <span><code>NO_RESOURCES</code>与标准的次要代码1将被抛出如果它不可用。</span> </li>
<li> <span>该拦截点不可用此操作因为必要的信息需要访问目标对象的仆人ORB可能不再可用。</span> <span>例如如果对象的适配器是使用一个POA <code>ServantLocator</code> 那么ORB将调用拦截点调用后<code>ServantLocator.postinvoke()</code></span> </li>
<span></span>
</ol>
</div>
<dl>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<span><a href="../../../org/omg/PortableInterceptor/ServerRequestInterceptor.html" title="在org.omg.PortableInterceptor中的接口"><code>ServerRequestInterceptor</code></a></span>
</dd>
</dl> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- --> </a> <h3>方法摘要</h3>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.omg.PortableInterceptor.ServerRequestInfoOperations">
<!-- --> </a> <h3>Methods inherited from interface org.omg.PortableInterceptor.<a href="../../../org/omg/PortableInterceptor/ServerRequestInfoOperations.html" title="interface in org.omg.PortableInterceptor">ServerRequestInfoOperations</a></h3> <code><a href="../../../org/omg/PortableInterceptor/ServerRequestInfoOperations.html#adapter_id--">adapter_id</a>, <a href="../../../org/omg/PortableInterceptor/ServerRequestInfoOperations.html#adapter_name--">adapter_name</a>, <a href="../../../org/omg/PortableInterceptor/ServerRequestInfoOperations.html#add_reply_service_context-org.omg.IOP.ServiceContext-boolean-">add_reply_service_context</a>, <a href="../../../org/omg/PortableInterceptor/ServerRequestInfoOperations.html#get_server_policy-int-">get_server_policy</a>, <a href="../../../org/omg/PortableInterceptor/ServerRequestInfoOperations.html#object_id--">object_id</a>, <a href="../../../org/omg/PortableInterceptor/ServerRequestInfoOperations.html#orb_id--">orb_id</a>, <a href="../../../org/omg/PortableInterceptor/ServerRequestInfoOperations.html#sending_exception--">sending_exception</a>, <a href="../../../org/omg/PortableInterceptor/ServerRequestInfoOperations.html#server_id--">server_id</a>, <a href="../../../org/omg/PortableInterceptor/ServerRequestInfoOperations.html#set_slot-int-org.omg.CORBA.Any-">set_slot</a>, <a href="../../../org/omg/PortableInterceptor/ServerRequestInfoOperations.html#target_is_a-java.lang.String-">target_is_a</a>, <a href="../../../org/omg/PortableInterceptor/ServerRequestInfoOperations.html#target_most_derived_interface--">target_most_derived_interface</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.omg.PortableInterceptor.RequestInfoOperations">
<!-- --> </a> <h3>Methods inherited from interface org.omg.PortableInterceptor.<a href="../../../org/omg/PortableInterceptor/RequestInfoOperations.html" title="interface in org.omg.PortableInterceptor">RequestInfoOperations</a></h3> <code><a href="../../../org/omg/PortableInterceptor/RequestInfoOperations.html#arguments--">arguments</a>, <a href="../../../org/omg/PortableInterceptor/RequestInfoOperations.html#contexts--">contexts</a>, <a href="../../../org/omg/PortableInterceptor/RequestInfoOperations.html#exceptions--">exceptions</a>, <a href="../../../org/omg/PortableInterceptor/RequestInfoOperations.html#forward_reference--">forward_reference</a>, <a href="../../../org/omg/PortableInterceptor/RequestInfoOperations.html#get_reply_service_context-int-">get_reply_service_context</a>, <a href="../../../org/omg/PortableInterceptor/RequestInfoOperations.html#get_request_service_context-int-">get_request_service_context</a>, <a href="../../../org/omg/PortableInterceptor/RequestInfoOperations.html#get_slot-int-">get_slot</a>, <a href="../../../org/omg/PortableInterceptor/RequestInfoOperations.html#operation_context--">operation_context</a>, <a href="../../../org/omg/PortableInterceptor/RequestInfoOperations.html#operation--">operation</a>, <a href="../../../org/omg/PortableInterceptor/RequestInfoOperations.html#reply_status--">reply_status</a>, <a href="../../../org/omg/PortableInterceptor/RequestInfoOperations.html#request_id--">request_id</a>, <a href="../../../org/omg/PortableInterceptor/RequestInfoOperations.html#response_expected--">response_expected</a>, <a href="../../../org/omg/PortableInterceptor/RequestInfoOperations.html#result--">result</a>, <a href="../../../org/omg/PortableInterceptor/RequestInfoOperations.html#sync_scope--">sync_scope</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.omg.CORBA.Object">
<!-- --> </a> <h3>Methods inherited from interface org.omg.CORBA.<a href="../../../org/omg/CORBA/Object.html" title="interface in org.omg.CORBA">Object</a></h3> <code><a href="../../../org/omg/CORBA/Object.html#Z:Z_create_request-org.omg.CORBA.Context-java.lang.String-org.omg.CORBA.NVList-org.omg.CORBA.NamedValue-">_create_request</a>, <a href="../../../org/omg/CORBA/Object.html#Z:Z_create_request-org.omg.CORBA.Context-java.lang.String-org.omg.CORBA.NVList-org.omg.CORBA.NamedValue-org.omg.CORBA.ExceptionList-org.omg.CORBA.ContextList-">_create_request</a>, <a href="../../../org/omg/CORBA/Object.html#Z:Z_duplicate--">_duplicate</a>, <a href="../../../org/omg/CORBA/Object.html#Z:Z_get_domain_managers--">_get_domain_managers</a>, <a href="../../../org/omg/CORBA/Object.html#Z:Z_get_interface_def--">_get_interface_def</a>, <a href="../../../org/omg/CORBA/Object.html#Z:Z_get_policy-int-">_get_policy</a>, <a href="../../../org/omg/CORBA/Object.html#Z:Z_hash-int-">_hash</a>, <a href="../../../org/omg/CORBA/Object.html#Z:Z_is_a-java.lang.String-">_is_a</a>, <a href="../../../org/omg/CORBA/Object.html#Z:Z_is_equivalent-org.omg.CORBA.Object-">_is_equivalent</a>, <a href="../../../org/omg/CORBA/Object.html#Z:Z_non_existent--">_non_existent</a>, <a href="../../../org/omg/CORBA/Object.html#Z:Z_release--">_release</a>, <a href="../../../org/omg/CORBA/Object.html#Z:Z_request-java.lang.String-">_request</a>, <a href="../../../org/omg/CORBA/Object.html#Z:Z_set_policy_override-org.omg.CORBA.Policy:A-org.omg.CORBA.SetOverrideType-">_set_policy_override</a></code></li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>