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()
Requestpublic String operation()
Requestpublic NVList arguments()
RequestNVList 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()
RequestNamedValue object containing the return
value for the method.public Environment env()
RequestEnvironment object for this request.
It contains the exception that the method being invoked has
thrown (after the invocation returns).public ExceptionList exceptions()
RequestExceptionList object for this request.
This list contains TypeCode objects describing the
exceptions that may be thrown by the method being invoked.exceptions in class RequestExceptionList object describing the exceptions
that may be thrown by the method being invokedpublic ContextList contexts()
RequestContextList object for this request.
This list contains context Strings that need to
be resolved and sent with the invocation.public Context ctx()
RequestContext 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)
RequestContext object to the one given.public Any add_in_arg()
RequestRequest
object.add_in_arg in class RequestAny object that contains the
value and typecode for the input argument addedpublic Any add_named_in_arg(String name)
RequestRequest object.add_named_in_arg in class Requestname - the name of the argument being addedAny object that contains the
value and typecode for the input argument addedpublic Any add_inout_arg()
RequestRequest object.add_inout_arg in class RequestAny object that contains the
value and typecode for the input/output argument addedpublic Any add_named_inout_arg(String name)
RequestRequest object.add_named_inout_arg in class Requestname - the name of the argument being addedAny object that contains the
value and typecode for the input/output argument addedpublic Any add_out_arg()
RequestRequest object.add_out_arg in class RequestAny object that contains the
value and typecode for the output argument addedpublic Any add_named_out_arg(String name)
RequestRequest object.add_named_out_arg in class Requestname - 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)
Requestset_return_type in class Requesttc - the TypeCode object containing type information
for the return valuepublic Any return_value()
RequestAny object that contains the value for the
result of the method.return_value in class RequestAny object containing the value and
typecode for the return valuepublic void add_exception(TypeCode exceptionType)
public void invoke()
RequestRequest object. Exception information is
placed into the Request object's environment object.public void send_oneway()
Requestsend_oneway in class Requestpublic void send_deferred()
Requestpoll_response and get_response to get
the result or exception information for the invocation.send_deferred in class Requestpublic boolean poll_response()
Requestsend_deferred method.poll_response in class Requesttrue if the method response has
been received; false otherwisepublic void get_response()
throws WrongTransaction
Requestsend_deferred method.get_response in class RequestWrongTransaction - 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 © 2018 JBoss by Red Hat. All rights reserved.