| Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
| PREV | NEXT | SHOW LISTS | HIDE LISTS | ||
java.lang.Object
|
+----org.omg.CORBA.Request
A Request object consists of:
NVList containing arguments for the operation.NamedValue object, which has three
parts:
Any object)
Request 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 NamedValue 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.
New Request objects are created using one of the
create_request methods in the Object class.
In other words, a create_request method is performed on the
object which is to be invoked.
| Method Summary | |
| Any | add_in_arg()
Request
object.
|
| Any | add_inout_arg()
Request object.
|
| Any | add_named_in_arg(String name)
Request object.
|
| Any | add_named_inout_arg(String name)
Request object.
|
| Any | add_named_out_arg(String name)
Request object.
|
| Any | add_out_arg()
Request object.
|
| NVList | arguments()
NVList object containing the arguments
to the method being invoked.
|
| ContextList | contexts()
ContextList object for this request.
|
| Context | ctx()
Context object for this request.
|
| void | ctx(Context c)
Context object to the one given.
|
| Environment | env()
Environment object for this request.
|
| ExceptionList | exceptions()
ExceptionList object for this request.
|
| void | get_response()
send_deferred method.
|
| void | invoke()
Request object.
|
| String | operation()
|
| boolean | poll_response()
send_deferred method.
|
| NamedValue | result()
NamedValue object containing the return
value for the method.
|
| Any | return_value()
Any object that contains the value for the
result of the method.
|
| void | send_deferred()
|
| void | send_oneway()
|
| void | set_return_type(TypeCode tc)
|
| Object | target()
|
| Methods inherited from class java.lang.Object |
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public abstract Object target()
public abstract String operation()
public abstract NVList arguments()
NVList object containing the arguments
to the method being invoked. The elements in the list are
NamedValue objects, with each one describing an argument
to the method.NVList object containing the arguments
for the methodpublic abstract NamedValue result()
NamedValue object containing the return
value for the method.NamedValue object containing the result
of the methodpublic abstract Environment env()
Environment object for this request.
It contains the exception that the method being invoked has
thrown (after the invocation returns).Environment object for this requestpublic abstract ExceptionList exceptions()
ExceptionList object for this request.
This list contains TypeCode objects describing the
exceptions that may be thrown by the method being invoked.ExceptionList object describing the exceptions
that may be thrown by the method being invokedpublic abstract ContextList contexts()
ContextList object for this request.
This list contains context Strings that need to
be resolved and sent with the invocation.public abstract Context ctx()
Context object for this request.
This is a list of properties giving information about the
client, the environment, or the circumstances of this request.Context object that is to be used
to resolve any context strings whose
values need to be sent with the invocationpublic abstract void ctx(Context c)
Context object to the one given.
c
- the new Context object to be used for
resolving context strings
public abstract Any add_in_arg()
Request
object.Any object that contains the
value and typecode for the input argument addedpublic abstract Any add_named_in_arg(String name)
Request object.
name
- the name of the argument being added
Any object that contains the
value and typecode for the input argument addedpublic abstract Any add_inout_arg()
Request object.Any object that contains the
value and typecode for the input/output argument addedpublic abstract Any add_named_inout_arg(String name)
Request object.
name
- the name of the argument being added
Any object that contains the
value and typecode for the input/output argument addedpublic abstract Any add_out_arg()
Request object.Any object that contains the
value and typecode for the output argument addedpublic abstract Any add_named_out_arg(String name)
Request object.
name
- the name of the argument being added
Any object that contains the
value and typecode for the output argument addedpublic abstract void set_return_type(TypeCode tc)
tc
- the TypeCode object containing type information
for the return value
public abstract Any return_value()
Any object that contains the value for the
result of the method.Any object containing the value and
typecode for the return valuepublic abstract void invoke()
Request object. Exception information is
placed into the Request object's environment object.public abstract void send_oneway()
public abstract void send_deferred()
poll_response and get_response to get
the result or exception information for the invocation.public abstract boolean poll_response()
send_deferred method.true if the method response has
been received; false otherwisepublic abstract void get_response() throws WrongTransaction
send_deferred method.get_response 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.| Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
| PREV | NEXT | SHOW LISTS | HIDE LISTS | ||