00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef AXIS2_CONF_CTX_H
00020 #define AXIS2_CONF_CTX_H
00021
00037 #include <axis2_defines.h>
00038 #include <axutil_hash.h>
00039 #include <axutil_env.h>
00040 #include <axis2_ctx.h>
00041 #include <axis2_svc_grp_ctx.h>
00042
00043 #ifdef __cplusplus
00044 extern "C"
00045 {
00046 #endif
00047
00049 typedef struct axis2_conf_ctx axis2_conf_ctx_t;
00050 struct axis2_conf;
00051
00059 AXIS2_EXTERN axis2_conf_ctx_t *AXIS2_CALL
00060 axis2_conf_ctx_create(
00061 const axutil_env_t * env,
00062 struct axis2_conf *conf);
00063
00071 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00072 axis2_conf_ctx_set_conf(
00073 axis2_conf_ctx_t * conf_ctx,
00074 const axutil_env_t * env,
00075 struct axis2_conf *conf);
00076
00084 AXIS2_EXTERN axis2_ctx_t *AXIS2_CALL
00085 axis2_conf_ctx_get_base(
00086 const axis2_conf_ctx_t * conf_ctx,
00087 const axutil_env_t * env);
00088
00096 AXIS2_EXTERN axis2_conf_t *AXIS2_CALL
00097 axis2_conf_ctx_get_conf(
00098 const axis2_conf_ctx_t * conf_ctx,
00099 const axutil_env_t * env);
00100
00107 AXIS2_EXTERN axutil_hash_t *AXIS2_CALL
00108 axis2_conf_ctx_get_op_ctx_map(
00109 const axis2_conf_ctx_t * conf_ctx,
00110 const axutil_env_t * env);
00111
00118 AXIS2_EXTERN axutil_hash_t *AXIS2_CALL
00119 axis2_conf_ctx_get_svc_ctx_map(
00120 const axis2_conf_ctx_t * conf_ctx,
00121 const axutil_env_t * env);
00122
00129 AXIS2_EXTERN axutil_hash_t *AXIS2_CALL
00130
00131 axis2_conf_ctx_get_svc_grp_ctx_map(
00132 const axis2_conf_ctx_t * conf_ctx,
00133 const axutil_env_t * env);
00134
00144 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00145 axis2_conf_ctx_register_op_ctx(
00146 axis2_conf_ctx_t * conf_ctx,
00147 const axutil_env_t * env,
00148 const axis2_char_t * message_id,
00149 axis2_op_ctx_t * op_ctx);
00150
00158 AXIS2_EXTERN axis2_op_ctx_t *AXIS2_CALL
00159 axis2_conf_ctx_get_op_ctx(
00160 const axis2_conf_ctx_t * conf_ctx,
00161 const axutil_env_t * env,
00162 const axis2_char_t * message_id);
00163
00172 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00173 axis2_conf_ctx_register_svc_ctx(
00174 axis2_conf_ctx_t * conf_ctx,
00175 const axutil_env_t * env,
00176 const axis2_char_t * svc_id,
00177 axis2_svc_ctx_t * svc_ctx);
00178
00186 AXIS2_EXTERN struct axis2_svc_ctx *AXIS2_CALL
00187 axis2_conf_ctx_get_svc_ctx(
00188 const axis2_conf_ctx_t * conf_ctx,
00189 const axutil_env_t * env,
00190 const axis2_char_t * svc_id);
00191
00200 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00201
00202 axis2_conf_ctx_register_svc_grp_ctx(
00203 axis2_conf_ctx_t * conf_ctx,
00204 const axutil_env_t * env,
00205 const axis2_char_t * svc_grp_id,
00206 axis2_svc_grp_ctx_t * svc_grp_ctx);
00207
00215 AXIS2_EXTERN axis2_svc_grp_ctx_t *AXIS2_CALL
00216
00217 axis2_conf_ctx_get_svc_grp_ctx(
00218 const axis2_conf_ctx_t * conf_ctx,
00219 const axutil_env_t * env,
00220 const axis2_char_t * svc_grp_id);
00221
00230 AXIS2_EXTERN const axis2_char_t *AXIS2_CALL
00231 axis2_conf_ctx_get_root_dir(
00232 const axis2_conf_ctx_t * conf_ctx,
00233 const axutil_env_t * env);
00234
00244 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00245 axis2_conf_ctx_set_root_dir(
00246 axis2_conf_ctx_t * conf_ctx,
00247 const axutil_env_t * env,
00248 const axis2_char_t * path);
00249
00259 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00260 axis2_conf_ctx_init(
00261 axis2_conf_ctx_t * conf_ctx,
00262 const axutil_env_t * env,
00263 axis2_conf_t * conf);
00264
00271 AXIS2_EXTERN void AXIS2_CALL
00272 axis2_conf_ctx_free(
00273 axis2_conf_ctx_t * conf_ctx,
00274 const axutil_env_t * env);
00275
00288 AXIS2_EXTERN axis2_svc_grp_ctx_t *AXIS2_CALL
00289 axis2_conf_ctx_fill_ctxs(
00290 axis2_conf_ctx_t * conf_ctx,
00291 const axutil_env_t * env,
00292 axis2_msg_ctx_t * msg_ctx);
00293
00294 #ifdef __cplusplus
00295 }
00296 #endif
00297
00298 #endif