#include <it_bus_pdk/interceptor.h>
Inheritance diagram for IT_Bus::ServerRequestInterceptor:
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 | |
ServerRequestInterceptor * | m_next_interceptor |
Pointer to the next interceptor in the chain. | |
ServerRequestInterceptor * | m_prev_interceptor |
Pointer to the previous interceptor in the chain. |
IT_Bus::ServerRequestInterceptor::ServerRequestInterceptor | ( | InterceptorFactory * | factory | ) |
Constructor.
A | pointer to an instance of this class' interceptor factory class. |
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.
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_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.
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.
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.