📄 request.html
字号:
<DD>Retrieves the <code>Context</code> object for this request. This is a list of properties giving information about the client, the environment, or the circumstances of this request.<DD><DL><DT><B>Returns:</B><DD>the <code>Context</code> object that is to be used to resolve any context strings whose values need to be sent with the invocation</DL></DD></DL><HR><A NAME="ctx(org.omg.CORBA.Context)"><!-- --></A><H3>ctx</H3><PRE>public abstract void <B>ctx</B>(<A HREF="../../../org/omg/CORBA/Context.html">Context</A> c)</PRE><DL><DD>Sets this request's <code>Context</code> object to the one given.<DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the new <code>Context</code> object to be used for resolving context strings</DL></DD></DL><HR><A NAME="add_in_arg()"><!-- --></A><H3>add_in_arg</H3><PRE>public abstract <A HREF="../../../org/omg/CORBA/Any.html">Any</A> <B>add_in_arg</B>()</PRE><DL><DD>Creates an input argument and adds it to this <code>Request</code> object.<DD><DL><DT><B>Returns:</B><DD>an <code>Any</code> object that contains the value and typecode for the input argument added</DL></DD></DL><HR><A NAME="add_named_in_arg(java.lang.String)"><!-- --></A><H3>add_named_in_arg</H3><PRE>public abstract <A HREF="../../../org/omg/CORBA/Any.html">Any</A> <B>add_named_in_arg</B>(<A HREF="../../../java/lang/String.html">String</A> name)</PRE><DL><DD>Creates an input argument with the given name and adds it to this <code>Request</code> object.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the argument being added<DT><B>Returns:</B><DD>an <code>Any</code> object that contains the value and typecode for the input argument added</DL></DD></DL><HR><A NAME="add_inout_arg()"><!-- --></A><H3>add_inout_arg</H3><PRE>public abstract <A HREF="../../../org/omg/CORBA/Any.html">Any</A> <B>add_inout_arg</B>()</PRE><DL><DD>Adds an input/output argument to this <code>Request</code> object.<DD><DL><DT><B>Returns:</B><DD>an <code>Any</code> object that contains the value and typecode for the input/output argument added</DL></DD></DL><HR><A NAME="add_named_inout_arg(java.lang.String)"><!-- --></A><H3>add_named_inout_arg</H3><PRE>public abstract <A HREF="../../../org/omg/CORBA/Any.html">Any</A> <B>add_named_inout_arg</B>(<A HREF="../../../java/lang/String.html">String</A> name)</PRE><DL><DD>Adds an input/output argument with the given name to this <code>Request</code> object.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the argument being added<DT><B>Returns:</B><DD>an <code>Any</code> object that contains the value and typecode for the input/output argument added</DL></DD></DL><HR><A NAME="add_out_arg()"><!-- --></A><H3>add_out_arg</H3><PRE>public abstract <A HREF="../../../org/omg/CORBA/Any.html">Any</A> <B>add_out_arg</B>()</PRE><DL><DD>Adds an output argument to this <code>Request</code> object.<DD><DL><DT><B>Returns:</B><DD>an <code>Any</code> object that contains the value and typecode for the output argument added</DL></DD></DL><HR><A NAME="add_named_out_arg(java.lang.String)"><!-- --></A><H3>add_named_out_arg</H3><PRE>public abstract <A HREF="../../../org/omg/CORBA/Any.html">Any</A> <B>add_named_out_arg</B>(<A HREF="../../../java/lang/String.html">String</A> name)</PRE><DL><DD>Adds an output argument with the given name to this <code>Request</code> object.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the argument being added<DT><B>Returns:</B><DD>an <code>Any</code> object that contains the value and typecode for the output argument added</DL></DD></DL><HR><A NAME="set_return_type(org.omg.CORBA.TypeCode)"><!-- --></A><H3>set_return_type</H3><PRE>public abstract void <B>set_return_type</B>(<A HREF="../../../org/omg/CORBA/TypeCode.html">TypeCode</A> tc)</PRE><DL><DD>Sets the typecode for the return value of the method.<DD><DL><DT><B>Parameters:</B><DD><CODE>tc</CODE> - the <code>TypeCode</code> object containing type information for the return value</DL></DD></DL><HR><A NAME="return_value()"><!-- --></A><H3>return_value</H3><PRE>public abstract <A HREF="../../../org/omg/CORBA/Any.html">Any</A> <B>return_value</B>()</PRE><DL><DD>Returns the <code>Any</code> object that contains the value for the result of the method.<DD><DL><DT><B>Returns:</B><DD>an <code>Any</code> object containing the value and typecode for the return value</DL></DD></DL><HR><A NAME="invoke()"><!-- --></A><H3>invoke</H3><PRE>public abstract void <B>invoke</B>()</PRE><DL><DD>Makes a synchronous invocation using the information in the <code>Request</code> object. Exception information is placed into the <code>Request</code> object's environment object.</DL><HR><A NAME="send_oneway()"><!-- --></A><H3>send_oneway</H3><PRE>public abstract void <B>send_oneway</B>()</PRE><DL><DD>Makes a oneway invocation on the request. In other words, it does not expect or wait for a response. Note that this can be used even if the operation was not declared as oneway in the IDL declaration. No response or exception information is returned.</DL><HR><A NAME="send_deferred()"><!-- --></A><H3>send_deferred</H3><PRE>public abstract void <B>send_deferred</B>()</PRE><DL><DD>Makes an asynchronous invocation on the request. In other words, it does not wait for a response before it returns to the user. The user can then later use the methods <code>poll_response</code> and <code>get_response</code> to get the result or exception information for the invocation.</DL><HR><A NAME="poll_response()"><!-- --></A><H3>poll_response</H3><PRE>public abstract boolean <B>poll_response</B>()</PRE><DL><DD>Allows the user to determine whether a response has been received for the invocation triggered earlier with the <code>send_deferred</code> method.<DD><DL><DT><B>Returns:</B><DD><code>true</code> if the method response has been received; <code>false</code> otherwise</DL></DD></DL><HR><A NAME="get_response()"><!-- --></A><H3>get_response</H3><PRE>public abstract void <B>get_response</B>() throws <A HREF="../../../org/omg/CORBA/WrongTransaction.html">WrongTransaction</A></PRE><DL><DD>Allows the user to access the response for the invocation triggered earlier with the <code>send_deferred</code> method.<DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/WrongTransaction.html">WrongTransaction</A></CODE> - if the method <code>get_response</code> was invoked from a different transaction's scope than the one from which the request was originally sent. See the OMG Transaction Service specification for details.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Request.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../org/omg/CORBA/RepositoryIdHelper.html"><B>PREV CLASS</B></A> <A HREF="../../../org/omg/CORBA/ServerRequest.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Request.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -