📄 request.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:43:16 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Class Request</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.omg.CORBA</FONT><BR>Class Request</H2><PRE><A HREF="../../../java/lang/Object.html">java.lang.Object</A> | +--<B>org.omg.CORBA.Request</B></PRE><HR><DL><DT>public abstract class <B>Request</B><DT>extends <A HREF="../../../java/lang/Object.html">Object</A></DL><P>An object containing the information necessary for invoking a method. This class is the cornerstone of the ORB Dynamic Invocation Interface (DII), which allows dynamic creation and invocation of requests. A server cannot tell the difference between a client invocation using a client stub and a request using the DII. <P> A <code>Request</code> object consists of: <UL> <LI>the name of the operation to be invoked <LI>an <code>NVList</code> containing arguments for the operation.<BR> Each item in the list is a <code>NamedValue</code> object, which has three parts: <OL> <LI>the name of the argument <LI>the value of the argument (as an <code>Any</code> object) <LI>the argument mode flag indicating whether the argument is for input, output, or both </OL> </UL> <P> <code>Request</code> objects may also contain additional information, depending on how an operation was defined in the original IDL interface definition. For example, where appropriate, they may contain a <code>NamedValue</code> object to hold the return value or exception, a context, a list of possible exceptions, and a list of context strings that need to be resolved. <P> New <code>Request</code> objects are created using one of the <code>create_request</code> methods in the <code>Object</code> class. In other words, a <code>create_request</code> method is performed on the object which is to be invoked.<P><DL><DT><B>See Also: </B><DD><A HREF="../../../org/omg/CORBA/NamedValue.html"><CODE>NamedValue</CODE></A></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/omg/CORBA/Request.html#Request()">Request</A></B>()</CODE><BR> </TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../org/omg/CORBA/Any.html">Any</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/Request.html#add_in_arg()">add_in_arg</A></B>()</CODE><BR> Creates an input argument and adds it to this <code>Request</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../org/omg/CORBA/Any.html">Any</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/Request.html#add_inout_arg()">add_inout_arg</A></B>()</CODE><BR> Adds an input/output argument to this <code>Request</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../org/omg/CORBA/Any.html">Any</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/Request.html#add_named_in_arg(java.lang.String)">add_named_in_arg</A></B>(<A HREF="../../../java/lang/String.html">String</A> name)</CODE><BR> Creates an input argument with the given name and adds it to this <code>Request</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../org/omg/CORBA/Any.html">Any</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/Request.html#add_named_inout_arg(java.lang.String)">add_named_inout_arg</A></B>(<A HREF="../../../java/lang/String.html">String</A> name)</CODE><BR> Adds an input/output argument with the given name to this <code>Request</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../org/omg/CORBA/Any.html">Any</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/Request.html#add_named_out_arg(java.lang.String)">add_named_out_arg</A></B>(<A HREF="../../../java/lang/String.html">String</A> name)</CODE><BR> Adds an output argument with the given name to this <code>Request</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../org/omg/CORBA/Any.html">Any</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/Request.html#add_out_arg()">add_out_arg</A></B>()</CODE><BR> Adds an output argument to this <code>Request</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../org/omg/CORBA/NVList.html">NVList</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/Request.html#arguments()">arguments</A></B>()</CODE><BR> Retrieves the <code>NVList</code> object containing the arguments to the method being invoked.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../org/omg/CORBA/ContextList.html">ContextList</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/Request.html#contexts()">contexts</A></B>()</CODE><BR> Retrieves the <code>ContextList</code> object for this request.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../org/omg/CORBA/Context.html">Context</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/Request.html#ctx()">ctx</A></B>()</CODE><BR> Retrieves the <code>Context</code> object for this request.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/Request.html#ctx(org.omg.CORBA.Context)">ctx</A></B>(<A HREF="../../../org/omg/CORBA/Context.html">Context</A> c)</CODE><BR> Sets this request's <code>Context</code> object to the one given.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../org/omg/CORBA/Environment.html">Environment</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/Request.html#env()">env</A></B>()</CODE><BR> Retrieves the <code>Environment</code> object for this request.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../org/omg/CORBA/ExceptionList.html">ExceptionList</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/Request.html#exceptions()">exceptions</A></B>()</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -