TAO_DynamicInterface  2.2.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
CORBA::ServerRequest Class Reference

Class representing the CORBA ServerRequest pseudo-object. More...

#include <Server_Request.h>

Collaboration diagram for CORBA::ServerRequest:
Collaboration graph

Public Types

typedef CORBA::ServerRequest_ptr _ptr_type
 Useful for template programming. More...
 
typedef CORBA::ServerRequest_var _var_type
 
typedef CORBA::ServerRequest_out _out_type
 

Public Member Functions

 ServerRequest (TAO_ServerRequest &orb_server_request)
 Constructor. More...
 
 ~ServerRequest (void)
 Destructor. More...
 
void arguments (CORBA::NVList_ptr &list)
 
void set_result (const CORBA::Any &value)
 
void set_exception (const CORBA::Any &value)
 
void dsi_marshal (void)
 Marshal outgoing parameters. More...
 
CORBA::Context_ptr ctx (void) const
 Accessor for the Context member. More...
 
void ctx (CORBA::Context_ptr)
 Mutator for the Context member. More...
 
const char * operation (void) const
 Get the operation name. More...
 
CORBA::ULong _incr_refcount (void)
 
CORBA::ULong _decr_refcount (void)
 
void _tao_lazy_evaluation (bool lazy_evaluation)
 Set the lazy evaluation flag. More...
 
int _tao_incoming_byte_order (void) const
 Get the byte order of the incoming CDR stream. More...
 
void _tao_reply_byte_order (int byte_order)
 Set the byte order of the outgoing CDR stream. More...
 
TAO_ServerRequest_tao_server_request (void)
 Return a reference to the underlying TAO_ServerRequest object. More...
 
void gateway_exception_reply (ACE_CString &raw_exception)
 

Static Public Member Functions

static ServerRequest_ptr _duplicate (ServerRequest_ptr)
 
static ServerRequest_ptr _nil (void)
 

Private Attributes

bool lazy_evaluation_
 If zero then the NVList is evaluated ASAP. More...
 
CORBA::Context_ptr ctx_
 Context associated with this request. More...
 
CORBA::NVList_ptr params_
 Incoming parameters. More...
 
CORBA::Any_ptr retval_
 Return value. More...
 
CORBA::Any_ptr exception_
 Any exception which might be raised. More...
 
ACE_Atomic_Op< TAO_SYNCH_MUTEX,
unsigned long > 
refcount_
 Reference counting. More...
 
TAO_ServerRequestorb_server_request_
 Request from the ORB. More...
 
bool sent_gateway_exception_
 Have we sent a user exception obtained from a gateway? More...
 

Detailed Description

Class representing the CORBA ServerRequest pseudo-object.

Instantiated by the POA for DSI requests and passed up to the application. Contains a reference to the instance of TAO_ServerRequest that is passed up to the POA from the ORB.

Member Typedef Documentation

Useful for template programming.

Constructor & Destructor Documentation

CORBA::ServerRequest::ServerRequest ( TAO_ServerRequest orb_server_request)

Constructor.

CORBA::ServerRequest::~ServerRequest ( void  )

Destructor.

Member Function Documentation

CORBA::ULong CORBA::ServerRequest::_decr_refcount ( void  )
CORBA::ServerRequest_ptr CORBA::ServerRequest::_duplicate ( CORBA::ServerRequest_ptr  x)
static
CORBA::ULong CORBA::ServerRequest::_incr_refcount ( void  )
CORBA::ServerRequest_ptr CORBA::ServerRequest::_nil ( void  )
static
int CORBA::ServerRequest::_tao_incoming_byte_order ( void  ) const

Get the byte order of the incoming CDR stream.

void CORBA::ServerRequest::_tao_lazy_evaluation ( bool  lazy_evaluation)

Set the lazy evaluation flag.

void CORBA::ServerRequest::_tao_reply_byte_order ( int  byte_order)

Set the byte order of the outgoing CDR stream.

TAO_ServerRequest & CORBA::ServerRequest::_tao_server_request ( void  )

Return a reference to the underlying TAO_ServerRequest object.

void CORBA::ServerRequest::arguments ( CORBA::NVList_ptr &  list)

Implementation uses this to provide the ORB with the operation's parameter list ... on return, their values are available; the list fed in has typecodes and (perhap) memory assigned.

CORBA::Context_ptr CORBA::ServerRequest::ctx ( void  ) const

Accessor for the Context member.

void CORBA::ServerRequest::ctx ( CORBA::Context_ptr  ctx)

Mutator for the Context member.

void CORBA::ServerRequest::dsi_marshal ( void  )

Marshal outgoing parameters.

void CORBA::ServerRequest::gateway_exception_reply ( ACE_CString raw_exception)

Returns a user exception through a TAO gateway without knowing its type.

const char * CORBA::ServerRequest::operation ( void  ) const

Get the operation name.

void CORBA::ServerRequest::set_exception ( const CORBA::Any &  value)

Implementation uses this to provide the exception value which is the only result of this particular invocation.

XXX Implementation should be able to assume response has been sent when this returns, and reclaim memory it allocated.

void CORBA::ServerRequest::set_result ( const CORBA::Any &  value)

Implementation uses this to provide the operation result ... illegal if exception() was called or params() was not called.

XXX Implementation should be able to assume response has been sent when this returns, and reclaim memory it allocated.

Member Data Documentation

CORBA::Context_ptr CORBA::ServerRequest::ctx_
private

Context associated with this request.

CORBA::Any_ptr CORBA::ServerRequest::exception_
private

Any exception which might be raised.

bool CORBA::ServerRequest::lazy_evaluation_
private

If zero then the NVList is evaluated ASAP.

TAO_ServerRequest& CORBA::ServerRequest::orb_server_request_
private

Request from the ORB.

CORBA::NVList_ptr CORBA::ServerRequest::params_
private

Incoming parameters.

ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> CORBA::ServerRequest::refcount_
private

Reference counting.

CORBA::Any_ptr CORBA::ServerRequest::retval_
private

Return value.

bool CORBA::ServerRequest::sent_gateway_exception_
private

Have we sent a user exception obtained from a gateway?


The documentation for this class was generated from the following files: