Savan_core
Detailed Description
subcription processor is responsible for processing incoming eventing message headers and is invoked from the savan_in_handler. This will create 'subcription' objects
Function Documentation
AXIS2_EXTERN savan_sub_processor_t* savan_sub_processor_create |
( |
const axutil_env_t * |
env |
) |
|
Creates a subcription processor instance.
- Parameters:
-
| env | pointer to environment struct |
- Returns:
- pointer to newly created subcription processor struct
axis2_status_t savan_sub_processor_get_status |
( |
savan_sub_processor_t * |
sub_processor, |
|
|
const axutil_env_t * |
env, |
|
|
axis2_msg_ctx_t * |
msg_ctx | |
|
) |
| | |
This method returns the status of a given subscription.
- Parameters:
-
| sub_processor | pointer to subcription processor |
| env | pointer to environment struct |
| msg_ctx | pointer to message context representing current state that is used when receiving message |
- Returns:
- AXIS2_SUCCESS on success, else AXIS2_FAILURE
axis2_status_t savan_sub_processor_renew_subscription |
( |
savan_sub_processor_t * |
sub_processor, |
|
|
const axutil_env_t * |
env, |
|
|
axis2_msg_ctx_t * |
msg_ctx | |
|
) |
| | |
This method finds the subcriptin id from the incoming message and renews that subscription.
- Parameters:
-
| sub_processor | pointer to subcription processor |
| env | pointer to environment struct |
| msg_ctx | pointer to message context representing current state that is used when receiving message |
- Returns:
- AXIS2_SUCCESS on success, else AXIS2_FAILURE
axis2_status_t savan_sub_processor_subscribe |
( |
savan_sub_processor_t * |
sub_processor, |
|
|
const axutil_env_t * |
env, |
|
|
axis2_msg_ctx_t * |
msg_ctx | |
|
) |
| | |
This method creates a subcription object from the incoming message and adds it to the internal list.
- Parameters:
-
| sub_processor | pointer to subcription processor |
| env | pointer to environment struct |
| msg_ctx | pointer to message context representing current state that is used when receiving message |
- Returns:
- AXIS2_SUCCESS on success, else AXIS2_FAILURE
axis2_status_t savan_sub_processor_unsubscribe |
( |
savan_sub_processor_t * |
sub_processor, |
|
|
const axutil_env_t * |
env, |
|
|
axis2_msg_ctx_t * |
msg_ctx | |
|
) |
| | |
This method finds the subcription id from the incoming message and removes that suscriber from the internal list.
- Parameters:
-
| sub_processor | pointer to subcription processor |
| env | pointer to environment struct |
| msg_ctx | pointer to message context representing current state that is used when receiving message |
- Returns:
- AXIS2_SUCCESS on success, else AXIS2_FAILURE