[Previous] [Contents] [Next] [IONA Technologies]


CORBA.Request


Contents

CORBA.Request.Request()
CORBA.Request.Request()
CORBA.Request.Request()
CORBA.Request.extract()
CORBA.Request.extractArray()
CORBA.Request.extractOutParams()
CORBA.Request.inReplyPostMarshal()
CORBA.Request.insert()
CORBA.Request.insertArray()
CORBA.Request._nil()
CORBA.Request.arguments()
CORBA.Request.ctx()
CORBA.Request.ctx()
CORBA.Request.get_response()
CORBA.Request.invoke()
CORBA.Request.IT_create()
CORBA.Request.operation()
CORBA.Request.poll_response()
CORBA.Request.reset()
CORBA.Request.result()
CORBA.Request.send_deferred()
CORBA.Request.send_oneway()
CORBA.Request.setOperation()
CORBA.Request.setTarget()
CORBA.Request.target()



Synopsis:

Class Request supports the Dynamic Invocation Interface (DII), whereby an application may issue a request for any interface, even if that interface was unknown at the time the application was compiled.

OrbixWeb allows invocations, which are instances of class Request, to be constructed by specifying at runtime the target object reference, the operation name and the parameters. Such calls are termed "dynamic" because the IDL interfaces used by a program do not have to be "statically" determined at the time the program is designed and implemented.

CORBA:

Orbix:



CORBA.Request.Request()


Synopsis:

Description:

Default constructor. The target object and the operation name for the request should then be filled in.

Notes:

OrbixWeb specific. See CORBA.BaseObject._create_request() and CORBA.BaseObject._request() for CORBA defined ways of constructing a Request.

See Also:

Other Request constructors.



CORBA.Request.Request()


Synopsis:

Description:

Constructs a Request by specifying its target object's reference. The operation name for the request may be set using CORBA.Request.setOperation().

Parameters:



     target
    
The object which is the target of the request.

Notes:

OrbixWeb specific. See CORBA.BaseObject._create_request() and CORBA.BaseObject._request() for CORBA defined ways of constructing a Request.

See Also:

Other Request constructors.



CORBA.Request.Request()


Synopsis:

Description:

Constructs a Request by specifying its target object's reference and the required operation name.

Parameters:



     target
    
The object which is the target of the request.

     OperationName
    
The operation name for the request.

Notes:

OrbixWeb specific. See CORBA.BaseObject._create_request() and CORBA.BaseObject._request() for CORBA defined ways of constructing a Request.

See Also:

Other Request constructors.



CORBA.Request.extract()


Synopsis:

Description:

Extracts a single-element operation return value from a Request. The inout and out parameter values should be extracted from the Request using the method Request.extractOutParams().

Each extraction method returns a value of the required type. The target variable does not need to be preallocated before calling a single-element extract() method.

Return Value:

Returns the extracted object. Return type matches that of the operation on which the Request was invoked.

Notes:

OrbixWeb specific.

See Also:



CORBA.Request.extractArray()


Synopsis:

Description:

Extracts an array return value from a Request. The inout and out parameter values should be extracted from the Request using the method Request.extractOutParams().

Each array extraction method takes a preallocated array as a parameter and an int parameter which indicates the length of the array. If the array is not large enough to hold the operation return value, then an exception is raised. Otherwise, the array elements are modified and the actual length of the array is returned.

Return Value:

Returns the actual length of the extracted array.

Notes:

OrbixWeb specific.

See Also:



CORBA.Request.extractOutParams()


Synopsis:

Description:

Extracts inout and out parameter values from a Request. Updates the values of variables which were previously inserted into the Request.

Notes:

OrbixWeb specific.

See Also:



CORBA.Request.inReplyPostMarshal()


Synopsis:

Description:

Explicitly invokes CORBA.Filter.inReplyPostMarshal() for the current Request. This is required when invoking a Request with the DII, as the CORBA.Filter.inReplyPostMarshal() will not be automatically invoked for a dynamic request.

Notes:

OrbixWeb specific.

See Also:



CORBA.Request.insert()


Synopsis:

Description:

Inserts a single-element parameter value into a Request. There are two forms of each insertion method: a method which supports the insertion of in parameters, and a method which supports the insertion of inout or out parameters. The first method form takes a single parameter of the appropriate type; the second takes a Holder object for the type.

The parameter passing mode should be set for the parameter using the method Request.setArgFlags(). This should be done immediately before inserting the parameter into the Request.

The following example inserts a short inout parameter into a Request:

Notes:

OrbixWeb specific.

See Also:



CORBA.Request.insertArray()


Synopsis:

Description:

Inserts an array parameter value into a Request. Each insertion method takes an array parameter of the appropriate type and an int parameter which indicates the length of the array.

The parameter passing mode should be set for the parameter using the method Request.setArgFlags(). This should be done immediately before inserting the parameter into the Request.

The following example inserts a short array in parameter of length five into a Request:

Notes:

OrbixWeb specific.

See Also:



CORBA.Request._nil()


Synopsis:

Description:

Returns a nil object reference for a Request.

Notes:

OrbixWeb specific.

See Also:



CORBA.Request.arguments()


Synopsis:

Description:

Returns the arguments to the Request's operation in an NVList.

Notes:

CORBA defined.

See Also:



CORBA.Request.ctx()


Synopsis:

Description:

Gets the Context associated with a request.

Notes:

CORBA defined.

See Also:



CORBA.Request.ctx()


Synopsis:

Description:

Inserts a Context into a request.

Notes:

CORBA defined.

See Also:



CORBA.Request.get_response()


Synopsis:

Description:

Determines whether a request has completed successfully. It returns only when the request (invoked using send_deferred()) has completed. If the return value indicates success, the out and inout parameters and return values defined in the Request are valid.

Return Value:

Returns 1 if the Request completed successfully; returns 0 otherwise.

Notes:

CORBA defined.

See Also:



CORBA.Request.invoke()


Synopsis:

Description:

Instructs OrbixWeb to make a request. The parameters to the request must already be set up. The caller is blocked until the request has been processed by the target object or an exception occurs.

To make a non-blocking request, see CORBA.Request.send_deferred() and CORBA.Request.send_oneway().

Return Value:

Returns 1 if successful, 0 otherwise.

Notes:

CORBA defined.

See Also:



CORBA.Request.IT_create()


Synopsis:

Description:

For consistency with other pseudo object types for which there is no CORBA defined way to obtain an object reference, OrbixWeb provides the IT_create() method for class Request.

See the corresponding constructor for details of the parameters to IT_create().

Notes:

OrbixWeb specific. See CORBA.BaseObject._create_request() and CORBA.BaseObject._request() for CORBA defined ways of creating a Request.

See Also:

Request constructors.



CORBA.Request.operation()


Synopsis:

Description:

Gets the Request's operation name.

Notes:

CORBA defined.

See Also:



CORBA.Request.poll_response()


Synopsis:

Description:

A caller who makes an operation request using send_deferred() may call poll_response() to determine whether the operation has completed. The method returns immediately. If the operation has completed, the result is available in the Request.

Return Value:

Returns true if the operation has completed successfully indicating that the return value and out and inout parameters in the Request are valid; returns false otherwise.

Notes:

CORBA defined.

See Also:



CORBA.Request.reset()


Synopsis:

Description:

Allows a Request object to be reused. The target object and/or the operation name can be individually reset.

Parameters:



     target
    
The target object. (If set to null, the target object is not reset.)

     operationName
    
The operation name.

Notes:

OrbixWeb specific.



CORBA.Request.result()


Synopsis:

Description:

Returns the result of the operation request in a NamedValue.

Notes:

CORBA defined.

See Also:



CORBA.Request.send_deferred()


Synopsis:

Description:

Instructs OrbixWeb to make the request. The arguments to the request must already be set up. The caller is not blocked, and thus may continue in parallel with the processing of the call by the target object.

The caller can use the method CORBA.Request.poll_response() to determine whether the operation completed.

The method CORBA.Request.get_response() can be used to determine the outcome of the request. Memory leakage will result if this method is not called for a request issued with send_deferred().

To make a blocking request, see CORBA.Request.invoke().

Return Value:

Returns 1 if successful, 0 otherwise.

Notes:

CORBA defined.

See Also:



CORBA.Request.send_oneway()


Synopsis:

Description:

Instructs OrbixWeb to make the oneway request. The arguments to the request must already be set up. The caller is not blocked, and thus may continue in parallel with the processing of the call by the target object.

This method may be used even if the operation has not been defined to be oneway in its IDL definition. The caller should not expect any in or inout parameters to be updated.

To make a blocking request, see CORBA.Request.invoke().

Return Value:

Returns 1 if successful, 0 otherwise.

Notes:

CORBA defined.

See Also:



CORBA.Request.setOperation()


Synopsis:

Description:

Sets the operation name for the request.

Notes:

OrbixWeb specific.

See Also:



CORBA.Request.setTarget()


Synopsis:

Description:

Sets the Request's target object.

Notes:

OrbixWeb specific.

See Also:



CORBA.Request.target()


Synopsis:

Description:

Gets the Request's target object.

Notes:

CORBA defined.

See Also:



[Roadmap] [Utilities] [Compiling] [Configuration]
[Class Reference] [IR Reference] [Daemon Reference] [IDL Grammar] [System Exceptions]
[Index]