IT_Bus::ServerRequestInterceptor Class Reference

#include <it_bus_pdk/interceptor.h>

Inheritance diagram for IT_Bus::ServerRequestInterceptor:

IT_Bus::Interceptor List of all members.

Detailed Description

Base class for server request interceptors.

Application specific server request interceptors extend this class, providing implementations for the intercept_pre_dispatch() and intercept_post_dispatch() methods or for the intercept_around_dispatch() method.

Definition at line 191 of file interceptor.h.

Public Member Functions

 ServerRequestInterceptor ()
 No argument constructor.
 ServerRequestInterceptor (InterceptorFactory *factory)
 Constructor.
virtual void intercept_pre_dispatch (ServerOperation &data)
 This method is invoked as the request message travels to the servant.
virtual void intercept_post_dispatch (ServerOperation &data)
 This method is invoked as the response message returns from the servant.
virtual void intercept_around_dispatch (ServerOperation &data)
 This method is called before data has been unmarshalled or the servant has been invoked.

Protected Attributes

ServerRequestInterceptorm_next_interceptor
 Pointer to the next interceptor in the chain.
ServerRequestInterceptorm_prev_interceptor
 Pointer to the previous interceptor in the chain.


Constructor & Destructor Documentation

IT_Bus::ServerRequestInterceptor::ServerRequestInterceptor ( InterceptorFactory factory  ) 

Constructor.

Parameters:
A pointer to an instance of this class' interceptor factory class.


Member Function Documentation

virtual void IT_Bus::ServerRequestInterceptor::intercept_around_dispatch ( ServerOperation data  )  [virtual]

This method is called before data has been unmarshalled or the servant has been invoked.

It must call ServerRequestInterceptor::intercept_around_dispatch in order to call the next interceptor in the chain. The call to the next interceptor returns after the servant has been invoked and the reply has been written to the transport. This allows you to write code that is executed before and after the dispatch process in a single function.

You cannot examine message parts before calling the next interceptor. You can examine but not modify or replace parts after calling the next interceptor.

virtual void IT_Bus::ServerRequestInterceptor::intercept_post_dispatch ( ServerOperation data  )  [virtual]

This method is invoked as the response message returns from the servant.

It is called after the servant has been invoked, but before data is written to the transport.

This method must call ServerRequestInterceptor::intercept_post_dispatch() in order to call the previous interceptor in the chain.

You can examine and modify output parts in this method.

virtual void IT_Bus::ServerRequestInterceptor::intercept_pre_dispatch ( ServerOperation data  )  [virtual]

This method is invoked as the request message travels to the servant.

It is called after data has been unmarshalled (so message parts are available) but before invoking on the servant.

This method must call ServerRequestInterceptor::intercept_pre_dispatch in order to call the next interceptor in the chain.

You can examine and modify input parts in this method.


Member Data Documentation

ServerRequestInterceptor* IT_Bus::ServerRequestInterceptor::m_next_interceptor [protected]

Pointer to the next interceptor in the chain.

This variable is initialized transparently during assembly of the interceptor chain.

Definition at line 281 of file interceptor.h.

ServerRequestInterceptor* IT_Bus::ServerRequestInterceptor::m_prev_interceptor [protected]

Pointer to the previous interceptor in the chain.

This variable is initialized transparently during assembly of the interceptor chain.

Definition at line 289 of file interceptor.h.


Generated on Thu Sep 7 11:40:19 2006 for Artix by  doxygen 1.4.7