Files | |
file | axis2_phase_resolver.h |
Modules | |
phase holder | |
Typedefs | |
typedef struct axis2_phase_resolver | axis2_phase_resolver_t |
Functions | |
AXIS2_EXTERN void | axis2_phase_resolver_free (axis2_phase_resolver_t *phase_resolver, const axutil_env_t *env) |
AXIS2_EXTERN axis2_status_t | axis2_phase_resolver_engage_module_globally (axis2_phase_resolver_t *phase_resolver, const axutil_env_t *env, struct axis2_module_desc *module) |
AXIS2_EXTERN axis2_status_t | axis2_phase_resolver_engage_module_to_svc (axis2_phase_resolver_t *phase_resolver, const axutil_env_t *env, struct axis2_svc *svc, struct axis2_module_desc *module_desc) |
AXIS2_EXTERN axis2_status_t | axis2_phase_resolver_engage_module_to_op (axis2_phase_resolver_t *phase_resolver, const axutil_env_t *env, struct axis2_op *axis_op, struct axis2_module_desc *module_desc) |
AXIS2_EXTERN axis2_status_t | axis2_phase_resolver_build_execution_chains_for_svc (axis2_phase_resolver_t *phase_resolver, const axutil_env_t *env) |
AXIS2_EXTERN axis2_status_t | axis2_phase_resolver_build_execution_chains_for_module_op (axis2_phase_resolver_t *phase_resolver, const axutil_env_t *env, struct axis2_op *op) |
AXIS2_EXTERN axis2_status_t | axis2_phase_resolver_disengage_module_from_svc (axis2_phase_resolver_t *phase_resolver, const axutil_env_t *env, struct axis2_svc *svc, struct axis2_module_desc *module_desc) |
AXIS2_EXTERN axis2_status_t | axis2_phase_resolver_disengage_module_from_op (axis2_phase_resolver_t *phase_resolver, const axutil_env_t *env, struct axis2_op *axis_op, struct axis2_module_desc *module_desc) |
AXIS2_EXTERN axis2_status_t | axis2_phase_resolver_build_transport_chains (axis2_phase_resolver_t *phase_resolver, const axutil_env_t *env) |
AXIS2_EXTERN axis2_phase_resolver_t * | axis2_phase_resolver_create (const axutil_env_t *env) |
AXIS2_EXTERN axis2_phase_resolver_t * | axis2_phase_resolver_create_with_config (const axutil_env_t *env, struct axis2_conf *axis2_config) |
AXIS2_EXTERN axis2_phase_resolver_t * | axis2_phase_resolver_create_with_config_and_svc (const axutil_env_t *env, struct axis2_conf *axis2_config, struct axis2_svc *svc) |
Above functions in phase resolver add module handlers into operation flows as mentioned above as well as add module handlers into system defined phases. User defined phases are added into each operation at deployment time before handlers are added into them by phase resolver. System define phases are added into axis2_conf_t structure and predefined handlers are added to them before module handlers are added to them by phase resolver.
Modules defined in axis2.xml are engaged by call to axis2_conf_engage_module() function. Modules defined in services xml are engaged by call to axis2_svc_enage_module() or axis2_svc_grp_engage_module(). Modules define in operation tag under services.xml are engaged by call to axis2_op_engage_module() function. These function in tern call one of axis2_phase_resolver_engage_module_globally() or axis2_phase_resolver_engage_module_to_svc() or axis2_phase_resolver_engage_module_to_op.
Also when you add a service programmaticaly into axis2_conf_t you need to build execution chains for that services operations. axis2_phase_resolver_build_execution_chains_for_svc() is the function to be called for that purpose. This will extract the already engaged modules for the configuration and service and add handlers from them into operation phases.
typedef struct axis2_phase_resolver axis2_phase_resolver_t |
Type name for axis2_phase_resolver
AXIS2_EXTERN axis2_status_t axis2_phase_resolver_build_execution_chains_for_module_op | ( | axis2_phase_resolver_t * | phase_resolver, | |
const axutil_env_t * | env, | |||
struct axis2_op * | op | |||
) |
Builds execution chains for given module operation.
phase_resolver | pointer to phase resolver | |
env | pointer to environment struct | |
op | pointer to operation |
AXIS2_EXTERN axis2_status_t axis2_phase_resolver_build_execution_chains_for_svc | ( | axis2_phase_resolver_t * | phase_resolver, | |
const axutil_env_t * | env | |||
) |
Builds the execution chains for service. Execution chains are collection of phases that are invoked in the execution path. Execution chains for system defined phases are created when call to engage_module_globally() function. Here it is created for service operations.
phase_resolver | pointer to phase resolver | |
env | pointer to environment struct |
AXIS2_EXTERN axis2_status_t axis2_phase_resolver_build_transport_chains | ( | axis2_phase_resolver_t * | phase_resolver, | |
const axutil_env_t * | env | |||
) |
Builds transport chains. This function is no longer used in Axis2/C and hence marked as deprecated.
phase_resolver | pointer to phase resolver | |
env | pointer to environment struct |
AXIS2_EXTERN axis2_phase_resolver_t* axis2_phase_resolver_create | ( | const axutil_env_t * | env | ) |
Creates phase resolver struct.
env | pointer to environment struct |
AXIS2_EXTERN axis2_phase_resolver_t* axis2_phase_resolver_create_with_config | ( | const axutil_env_t * | env, | |
struct axis2_conf * | axis2_config | |||
) |
Creates phase resolver struct with given configuration.
env | pointer to environment struct | |
axis2_config | pointer to aixs2 configuration, phase resolver created would not assume ownership of configuration |
AXIS2_EXTERN axis2_phase_resolver_t* axis2_phase_resolver_create_with_config_and_svc | ( | const axutil_env_t * | env, | |
struct axis2_conf * | axis2_config, | |||
struct axis2_svc * | svc | |||
) |
Creates phase resolver struct with given configuration and service.
env | pointer to environment struct | |
aixs2_config | pointer to aixs2 configuration, phase resolver created would not assume ownership of configuration | |
svc | pointer to service, phase resolver created would not assume ownership of service |
AXIS2_EXTERN axis2_status_t axis2_phase_resolver_disengage_module_from_op | ( | axis2_phase_resolver_t * | phase_resolver, | |
const axutil_env_t * | env, | |||
struct axis2_op * | axis_op, | |||
struct axis2_module_desc * | module_desc | |||
) |
Disengages the given module from the given operation.
phase_resolver | pointer to phase resolver | |
env | pointer to environment struct | |
axis_op | pointer to axis operation | |
pointer | to module description |
AXIS2_EXTERN axis2_status_t axis2_phase_resolver_disengage_module_from_svc | ( | axis2_phase_resolver_t * | phase_resolver, | |
const axutil_env_t * | env, | |||
struct axis2_svc * | svc, | |||
struct axis2_module_desc * | module_desc | |||
) |
Disengages the given module from the given service. This means the given module would be disengaged from all operations of the given service.
phase_resolver | pointer to phase resolver | |
env | pointer to environment struct | |
svc | pointer to service | |
module_desc | pointer to module description |
AXIS2_EXTERN axis2_status_t axis2_phase_resolver_engage_module_globally | ( | axis2_phase_resolver_t * | phase_resolver, | |
const axutil_env_t * | env, | |||
struct axis2_module_desc * | module | |||
) |
Engages the given module globally. Engaging a module globally means that the given module would be engaged to all operations in all services.
phase_resolver | pointer to phase resolver | |
env | pointer to environment struct | |
module | pointer to module |
AXIS2_EXTERN axis2_status_t axis2_phase_resolver_engage_module_to_op | ( | axis2_phase_resolver_t * | phase_resolver, | |
const axutil_env_t * | env, | |||
struct axis2_op * | axis_op, | |||
struct axis2_module_desc * | module_desc | |||
) |
Engages the given module to the given operation.
phase_resolver | pointer to phase resolver | |
env | pointer to environment struct | |
axis_op | pointer to axis operation | |
pointer | to module description |
AXIS2_EXTERN axis2_status_t axis2_phase_resolver_engage_module_to_svc | ( | axis2_phase_resolver_t * | phase_resolver, | |
const axutil_env_t * | env, | |||
struct axis2_svc * | svc, | |||
struct axis2_module_desc * | module_desc | |||
) |
Engages the given module to the given service. This means the given module would be engaged to all operations of the given service.
phase_resolver | pointer to phase resolver | |
env | pointer to environment struct | |
svc | pointer to service | |
module_desc | pointer to module description |
AXIS2_EXTERN void axis2_phase_resolver_free | ( | axis2_phase_resolver_t * | phase_resolver, | |
const axutil_env_t * | env | |||
) |
Frees phase resolver.
phase_resolver | pointer to phase resolver | |
env | pointer to environment struct |