|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.omg.CORBA.Request
public abstract class Request
An object, containing the information, needed to invoke the method of the local or remote CORBA object. The Request is used in Dynamic Invocation Interface (DII) which allows dynamic creation of requests.
Constructor Summary | |
---|---|
Request()
|
Method Summary | |
---|---|
abstract Any |
add_in_arg()
Add the named input parameter that passes value to the method being invoked. |
abstract Any |
add_inout_arg()
Add the input/output parameter that passes value both to and from the method being invoked. |
abstract Any |
add_named_in_arg(String name)
Add the named input parameter that passes value to the method being invoked. |
abstract Any |
add_named_inout_arg(String name)
Add the named input/output parameter that passes value both to and from the method being invoked. |
abstract Any |
add_named_out_arg(String name)
Add the named output parameter that passes value from the method being invoked. |
abstract Any |
add_out_arg()
Add the output parameter that passes value from the method being invoked. |
abstract NVList |
arguments()
Return the list of all previously added parameters. |
abstract ContextList |
contexts()
Get the context list object for this request. |
abstract Context |
ctx()
Get the context, previously set using ctx(Context) . |
abstract void |
ctx(Context a_context)
Set the context that shuld be later returned by ctx() . |
abstract Environment |
env()
Returns the container, eclosing an exception that the invoked method has thrown. |
abstract ExceptionList |
exceptions()
List the exceptions that may be thrown by the CORBA object method being invoked. |
abstract void |
get_response()
Allow to access the response that has been previously sent using send_deferred() . |
abstract void |
invoke()
Submit the request, suspending the current thread until the answer is received. |
abstract String |
operation()
Get the name of the method being invoked. |
abstract boolean |
poll_response()
Check if the response is received to the request that was previously send using send_deferred() . |
abstract NamedValue |
result()
Get the value, returned by the method, together with its name. |
abstract Any |
return_value()
Get the value, returned by the method. |
abstract void |
send_deferred()
Send a request without suspending the current thread. |
abstract void |
send_oneway()
Send a request and forget about it, not waiting for a response. |
abstract void |
set_return_type(TypeCode returns)
Set the return type. |
abstract Object |
target()
Return the CORBA object on that the method would be invoked. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Request()
Method Detail |
---|
public abstract Any add_in_arg()
public abstract Any add_inout_arg()
public abstract Any add_named_in_arg(String name)
name
- the parameter name.
public abstract Any add_named_inout_arg(String name)
name
- the parameter name.
public abstract Any add_named_out_arg(String name)
name
- the parameter name.
public abstract Any add_out_arg()
public abstract NVList arguments()
public abstract ContextList contexts()
public abstract Context ctx()
ctx(Context)
.
The context contains the details about this request.
public abstract void ctx(Context a_context)
ctx()
.
This context contains the details about this request.
a_context
- a context to set.public abstract Environment env()
public abstract ExceptionList exceptions()
public abstract void get_response() throws WrongTransaction
send_deferred()
.
WrongTransaction
- if the transaction scope mismatches.public abstract void invoke()
public abstract String operation()
public abstract boolean poll_response()
send_deferred()
.
public abstract NamedValue result()
public abstract Any return_value()
public abstract void send_deferred()
poll_response()
and
retrieving the results by get_response()
.
public abstract void send_oneway()
public abstract void set_return_type(TypeCode returns)
returns
- the type of the value, returned in response to this
request.public abstract Object target()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |