public class RequestImpl extends Request
Modifier and Type | Field and Description |
---|---|
protected NVList |
_arguments |
protected Environment |
_env |
protected ExceptionList |
_exceptions |
protected boolean |
_isOneWay |
protected String |
_opName |
protected ORB |
_orb |
protected Object |
_target |
protected boolean |
gotResponse |
Constructor and Description |
---|
RequestImpl(ORB orb,
Object targetObject,
Context ctx,
String operationName,
NVList argumentList,
NamedValue resultContainer,
ExceptionList exceptionList,
ContextList ctxList) |
Modifier and Type | Method and Description |
---|---|
void |
add_exception(TypeCode exceptionType) |
Any |
add_in_arg()
Creates an input argument and adds it to this
Request
object. |
Any |
add_inout_arg()
Adds an input/output argument to this
Request object. |
Any |
add_named_in_arg(String name)
Creates an input argument with the given name and adds it to
this
Request object. |
Any |
add_named_inout_arg(String name)
Adds an input/output argument with the given name to this
Request object. |
Any |
add_named_out_arg(String name)
Adds an output argument with the given name to this
Request object. |
Any |
add_out_arg()
Adds an output argument to this
Request object. |
NVList |
arguments()
Retrieves the
NVList object containing the arguments
to the method being invoked. |
ContextList |
contexts()
Retrieves the
ContextList object for this request. |
Context |
ctx()
Retrieves the
Context object for this request. |
void |
ctx(Context newCtx)
Sets this request's
Context object to the one given. |
protected void |
doInvocation() |
Environment |
env()
Retrieves the
Environment object for this request. |
ExceptionList |
exceptions()
Retrieves the
ExceptionList object for this request. |
void |
get_response()
Allows the user to access the
response for the invocation triggered earlier with the
send_deferred method. |
void |
invoke()
Makes a synchronous invocation using the
information in the
Request object. |
String |
operation()
Retrieves the name of the method to be invoked.
|
boolean |
poll_response()
Allows the user to determine
whether a response has been received for the invocation triggered
earlier with the
send_deferred method. |
NamedValue |
result()
Retrieves the
NamedValue object containing the return
value for the method. |
Any |
return_value()
Returns the
Any object that contains the value for the
result of the method. |
void |
send_deferred()
Makes an asynchronous invocation on
the request.
|
void |
send_oneway()
Makes a oneway invocation on the
request.
|
void |
set_return_type(TypeCode tc)
Sets the typecode for the return
value of the method.
|
Object |
target()
Retrieves the the target object reference.
|
void |
unmarshalReply(InputStream is) |
protected Object _target
protected String _opName
protected NVList _arguments
protected ExceptionList _exceptions
protected Environment _env
protected ORB _orb
protected boolean _isOneWay
protected boolean gotResponse
public RequestImpl(ORB orb, Object targetObject, Context ctx, String operationName, NVList argumentList, NamedValue resultContainer, ExceptionList exceptionList, ContextList ctxList)
public Object target()
Request
public String operation()
Request
public NVList arguments()
Request
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.public NamedValue result()
Request
NamedValue
object containing the return
value for the method.public Environment env()
Request
Environment
object for this request.
It contains the exception that the method being invoked has
thrown (after the invocation returns).public ExceptionList exceptions()
Request
ExceptionList
object for this request.
This list contains TypeCode
objects describing the
exceptions that may be thrown by the method being invoked.exceptions
in class Request
ExceptionList
object describing the exceptions
that may be thrown by the method being invokedpublic ContextList contexts()
Request
ContextList
object for this request.
This list contains context String
s that need to
be resolved and sent with the invocation.public Context ctx()
Request
Context
object for this request.
This is a list of properties giving information about the
client, the environment, or the circumstances of this request.public void ctx(Context newCtx)
Request
Context
object to the one given.public Any add_in_arg()
Request
Request
object.add_in_arg
in class Request
Any
object that contains the
value and typecode for the input argument addedpublic Any add_named_in_arg(String name)
Request
Request
object.add_named_in_arg
in class Request
name
- the name of the argument being addedAny
object that contains the
value and typecode for the input argument addedpublic Any add_inout_arg()
Request
Request
object.add_inout_arg
in class Request
Any
object that contains the
value and typecode for the input/output argument addedpublic Any add_named_inout_arg(String name)
Request
Request
object.add_named_inout_arg
in class Request
name
- the name of the argument being addedAny
object that contains the
value and typecode for the input/output argument addedpublic Any add_out_arg()
Request
Request
object.add_out_arg
in class Request
Any
object that contains the
value and typecode for the output argument addedpublic Any add_named_out_arg(String name)
Request
Request
object.add_named_out_arg
in class Request
name
- the name of the argument being addedAny
object that contains the
value and typecode for the output argument addedpublic void set_return_type(TypeCode tc)
Request
set_return_type
in class Request
tc
- the TypeCode
object containing type information
for the return valuepublic Any return_value()
Request
Any
object that contains the value for the
result of the method.return_value
in class Request
Any
object containing the value and
typecode for the return valuepublic void add_exception(TypeCode exceptionType)
public void invoke()
Request
Request
object. Exception information is
placed into the Request
object's environment object.public void send_oneway()
Request
send_oneway
in class Request
public void send_deferred()
Request
poll_response
and get_response
to get
the result or exception information for the invocation.send_deferred
in class Request
public boolean poll_response()
Request
send_deferred
method.poll_response
in class Request
true
if the method response has
been received; false
otherwisepublic void get_response() throws WrongTransaction
Request
send_deferred
method.get_response
in class Request
WrongTransaction
- if the 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.protected void doInvocation()
public void unmarshalReply(InputStream is)
Copyright © 2019 JBoss by Red Hat. All rights reserved.