Package com.sun.corba.se.impl.corba
Class RequestImpl
java.lang.Object
org.omg.CORBA.Request
com.sun.corba.se.impl.corba.RequestImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected NVListprotected Environmentprotected ExceptionListprotected booleanprotected Stringprotected ORBprotected Objectprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionRequestImpl(ORB orb, Object targetObject, Context ctx, String operationName, NVList argumentList, NamedValue resultContainer, ExceptionList exceptionList, ContextList ctxList) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd_exception(TypeCode exceptionType) Creates an input argument and adds it to thisRequestobject.Adds an input/output argument to thisRequestobject.add_named_in_arg(String name) Creates an input argument with the given name and adds it to thisRequestobject.add_named_inout_arg(String name) Adds an input/output argument with the given name to thisRequestobject.add_named_out_arg(String name) Adds an output argument with the given name to thisRequestobject.Adds an output argument to thisRequestobject.Retrieves theNVListobject containing the arguments to the method being invoked.contexts()Retrieves theContextListobject for this request.ctx()Retrieves theContextobject for this request.voidSets this request'sContextobject to the one given.protected voidenv()Retrieves theEnvironmentobject for this request.Retrieves theExceptionListobject for this request.voidAllows the user to access the response for the invocation triggered earlier with thesend_deferredmethod.voidinvoke()Makes a synchronous invocation using the information in theRequestobject.Retrieves the name of the method to be invoked.booleanAllows the user to determine whether a response has been received for the invocation triggered earlier with thesend_deferredmethod.result()Retrieves theNamedValueobject containing the return value for the method.Returns theAnyobject that contains the value for the result of the method.voidMakes an asynchronous invocation on the request.voidMakes a oneway invocation on the request.voidSets the typecode for the return value of the method.target()Retrieves the the target object reference.void
-
Field Details
-
_target
-
_opName
-
_arguments
-
_exceptions
-
_env
-
_orb
-
_isOneWay
protected boolean _isOneWay -
gotResponse
protected boolean gotResponse
-
-
Constructor Details
-
RequestImpl
public RequestImpl(ORB orb, Object targetObject, Context ctx, String operationName, NVList argumentList, NamedValue resultContainer, ExceptionList exceptionList, ContextList ctxList)
-
-
Method Details
-
target
Description copied from class:RequestRetrieves the the target object reference. -
operation
Description copied from class:RequestRetrieves the name of the method to be invoked. -
arguments
Description copied from class:RequestRetrieves theNVListobject containing the arguments to the method being invoked. The elements in the list areNamedValueobjects, with each one describing an argument to the method. -
result
Description copied from class:RequestRetrieves theNamedValueobject containing the return value for the method. -
env
Description copied from class:RequestRetrieves theEnvironmentobject for this request. It contains the exception that the method being invoked has thrown (after the invocation returns). -
exceptions
Description copied from class:RequestRetrieves theExceptionListobject for this request. This list containsTypeCodeobjects describing the exceptions that may be thrown by the method being invoked.- Specified by:
exceptionsin classRequest- Returns:
- the
ExceptionListobject describing the exceptions that may be thrown by the method being invoked
-
contexts
Description copied from class:RequestRetrieves theContextListobject for this request. This list contains contextStrings that need to be resolved and sent with the invocation. -
ctx
Description copied from class:RequestRetrieves theContextobject for this request. This is a list of properties giving information about the client, the environment, or the circumstances of this request. -
ctx
Description copied from class:RequestSets this request'sContextobject to the one given. -
add_in_arg
Description copied from class:RequestCreates an input argument and adds it to thisRequestobject.- Specified by:
add_in_argin classRequest- Returns:
- an
Anyobject that contains the value and typecode for the input argument added
-
add_named_in_arg
Description copied from class:RequestCreates an input argument with the given name and adds it to thisRequestobject.- Specified by:
add_named_in_argin classRequest- Parameters:
name- the name of the argument being added- Returns:
- an
Anyobject that contains the value and typecode for the input argument added
-
add_inout_arg
Description copied from class:RequestAdds an input/output argument to thisRequestobject.- Specified by:
add_inout_argin classRequest- Returns:
- an
Anyobject that contains the value and typecode for the input/output argument added
-
add_named_inout_arg
Description copied from class:RequestAdds an input/output argument with the given name to thisRequestobject.- Specified by:
add_named_inout_argin classRequest- Parameters:
name- the name of the argument being added- Returns:
- an
Anyobject that contains the value and typecode for the input/output argument added
-
add_out_arg
Description copied from class:RequestAdds an output argument to thisRequestobject.- Specified by:
add_out_argin classRequest- Returns:
- an
Anyobject that contains the value and typecode for the output argument added
-
add_named_out_arg
Description copied from class:RequestAdds an output argument with the given name to thisRequestobject.- Specified by:
add_named_out_argin classRequest- Parameters:
name- the name of the argument being added- Returns:
- an
Anyobject that contains the value and typecode for the output argument added
-
set_return_type
Description copied from class:RequestSets the typecode for the return value of the method.- Specified by:
set_return_typein classRequest- Parameters:
tc- theTypeCodeobject containing type information for the return value
-
return_value
Description copied from class:RequestReturns theAnyobject that contains the value for the result of the method.- Specified by:
return_valuein classRequest- Returns:
- an
Anyobject containing the value and typecode for the return value
-
add_exception
-
invoke
public void invoke()Description copied from class:RequestMakes a synchronous invocation using the information in theRequestobject. Exception information is placed into theRequestobject's environment object. -
send_oneway
public void send_oneway()Description copied from class:RequestMakes a oneway invocation on the request. In other words, it does not expect or wait for a response. Note that this can be used even if the operation was not declared as oneway in the IDL declaration. No response or exception information is returned.- Specified by:
send_onewayin classRequest
-
send_deferred
public void send_deferred()Description copied from class:RequestMakes an asynchronous invocation on the request. In other words, it does not wait for a response before it returns to the user. The user can then later use the methodspoll_responseandget_responseto get the result or exception information for the invocation.- Specified by:
send_deferredin classRequest
-
poll_response
public boolean poll_response()Description copied from class:RequestAllows the user to determine whether a response has been received for the invocation triggered earlier with thesend_deferredmethod.- Specified by:
poll_responsein classRequest- Returns:
trueif the method response has been received;falseotherwise
-
get_response
Description copied from class:RequestAllows the user to access the response for the invocation triggered earlier with thesend_deferredmethod.- Specified by:
get_responsein classRequest- Throws:
WrongTransaction- if the methodget_responsewas 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.
-
doInvocation
protected void doInvocation() -
unmarshalReply
-