dispatcher
[engine]
Detailed Description
dispatcher is responsible for finding the service and operation for a given invocation. A Web service request would contain information that help locate the service and the operation serving the request. This information could be in various formats, and hence the mechanism to find the requested service and operation based on the available information could too vary. Hence there can be various types on dispatches involved in a dispatching phase of the engine, that implements the API given in this header.
Typedef Documentation
Type name for struct axis2_disp
Function Documentation
Creates a WS-Addressing based dispatcher.
- Parameters:
-
| env | pointer to environment struct |
- Returns:
- pointer to the newly created dispatcher with find_svc and find_op methods implemented based on WS-Addressing
Creates a dispatcher struct instance.
- Parameters:
-
| env | pointer to environment struct |
| name | pointer to QName. QName is cloned by create method. |
- Returns:
- pointer to newly created dispatcher
Frees dispatcher struct.
- Parameters:
-
| disp | pointer to dispatcher |
| env | pointer to environment struct |
- Returns:
- void
Gets the base struct which is of type handler.
- Parameters:
-
| disp | pointer to dispatcher |
| env | pointer to environment struct |
- Returns:
- pointer to base handler struct. Returns a reference, not a cloned copy
Gets the name of the dispatcher.
- Parameters:
-
| disp | pointer to dispatcher |
| env | pointer to environment struct |
- Returns:
- pointer to name. Returns a reference, not a cloned copy
AXIS2_EXTERN axis2_status_t axis2_disp_set_name |
( |
axis2_disp_t * |
disp, |
|
|
const axutil_env_t * |
env, |
|
|
axutil_string_t * |
name | |
|
) |
| | |
Sets the name of the dispatcher.
- Parameters:
-
| disp | pointer to dispatcher |
| env | pointer to environment struct |
| name | pointer to name, dispatcher assumes ownership of the name struct |
- Returns:
- AXIS2_SUCCESS on success, else AXIS2_FAILURE
Creates a request URI based dispatcher.
- Parameters:
-
| env | pointer to environment struct |
- Returns:
- pointer to the newly created dispatcher with find_svc and find_op methods implemented based on request URI processing.
Creates a REST based dispatcher.
- Parameters:
-
| env | pointer to environment struct |
- Returns:
- pointer to the newly created dispatcher with find_svc and find_op methods implemented based on REST processing.
Creates a SOAP action based dispatcher.
- Parameters:
-
| env | pointer to environment struct |
- Returns:
- pointer to the newly created dispatcher with find_svc and find_op methods implemented based on SOAP action processing
Creates a SOAP body based dispatcher.
- Parameters:
-
| env | pointer to environment struct |
- Returns:
- pointer to the newly created dispatcher with find_svc and find_op methods implemented based on SOAP body processing.