axis2_msg_info_headers.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2004,2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef AXIS2_MSG_INFO_HEADERS_H
00018 #define AXIS2_MSG_INFO_HEADERS_H
00019 
00031 #include <axis2_defines.h>
00032 #include <axis2_env.h>
00033 #include <axis2_const.h>
00034 #include <axis2_array_list.h>
00035 #include <axis2_endpoint_ref.h>
00036 #include <axis2_any_content_type.h>
00037 #include <axis2_svc_name.h>
00038 #include <axis2_relates_to.h>
00039 #include <axiom_node.h>
00040 
00041 #ifdef __cplusplus
00042 extern "C"
00043 {
00044 #endif
00045 
00047     typedef struct axis2_msg_info_headers axis2_msg_info_headers_t;
00049     typedef struct axis2_msg_info_headers_ops axis2_msg_info_headers_ops_t;
00050 
00051 
00055     struct axis2_msg_info_headers_ops
00056     {
00061         axis2_endpoint_ref_t *(AXIS2_CALL *
00062                 get_to)(
00063                     const axis2_msg_info_headers_t *msg_info_headers,
00064                     const axis2_env_t *env);
00065 
00072         axis2_status_t (AXIS2_CALL *
00073                 set_to)(
00074                     struct axis2_msg_info_headers *msg_info_headers,
00075                     const axis2_env_t *env,
00076                     axis2_endpoint_ref_t *to);
00077 
00082         axis2_endpoint_ref_t *(AXIS2_CALL *
00083                 get_from)(
00084                     const axis2_msg_info_headers_t *msg_info_headers,
00085                     const axis2_env_t *env);
00086 
00093         axis2_status_t (AXIS2_CALL *
00094                 set_from)(
00095                     struct axis2_msg_info_headers *msg_info_headers,
00096                     const axis2_env_t *env,
00097                     axis2_endpoint_ref_t *from);
00098 
00103         axis2_endpoint_ref_t *(AXIS2_CALL *
00104                 get_reply_to)(
00105                     const axis2_msg_info_headers_t *msg_info_headers,
00106                     const axis2_env_t *env);
00107 
00114         axis2_status_t (AXIS2_CALL *
00115                 set_reply_to)(
00116                     struct axis2_msg_info_headers *msg_info_headers,
00117                     const axis2_env_t *env,
00118                     axis2_endpoint_ref_t *reply_to);
00119 
00126         axis2_status_t (AXIS2_CALL *
00127                 set_reply_to_none)(
00128                     struct axis2_msg_info_headers *msg_info_headers,
00129                     const axis2_env_t *env, 
00130                     axis2_bool_t none);
00131 
00136         axis2_bool_t (AXIS2_CALL *
00137                 get_reply_to_none)(
00138                     const axis2_msg_info_headers_t *msg_info_headers,
00139                     const axis2_env_t *env);
00140 
00147         axis2_status_t (AXIS2_CALL *
00148                 set_reply_to_anonymous)(
00149                     struct axis2_msg_info_headers *msg_info_headers,
00150                     const axis2_env_t *env, 
00151                     axis2_bool_t anonymous);
00152 
00157         axis2_bool_t (AXIS2_CALL *
00158                 get_reply_to_anonymous)(
00159                     const axis2_msg_info_headers_t *msg_info_headers,
00160                     const axis2_env_t *env);
00161 
00166         axis2_endpoint_ref_t *(AXIS2_CALL *
00167                 get_fault_to)(
00168                     const axis2_msg_info_headers_t *msg_info_headers,
00169                     const axis2_env_t *env);
00170 
00177         axis2_status_t (AXIS2_CALL *
00178                 set_fault_to)(
00179                     struct axis2_msg_info_headers *msg_info_headers,
00180                     const axis2_env_t *env,
00181                     axis2_endpoint_ref_t *fault_to);
00182 
00189         axis2_status_t (AXIS2_CALL *
00190                 set_fault_to_none)(
00191                     struct axis2_msg_info_headers *msg_info_headers,
00192                     const axis2_env_t *env, 
00193                     axis2_bool_t none);
00194 
00199         axis2_bool_t (AXIS2_CALL *
00200                 get_fault_to_none)(
00201                     const axis2_msg_info_headers_t *msg_info_headers,
00202                     const axis2_env_t *env);
00203 
00210         axis2_status_t (AXIS2_CALL *
00211                 set_fault_to_anonymous)(
00212                     struct axis2_msg_info_headers *msg_info_headers,
00213                     const axis2_env_t *env, 
00214                     axis2_bool_t anonymous);
00215 
00220         axis2_bool_t (AXIS2_CALL *
00221                 get_fault_to_anonymous)(
00222                     const axis2_msg_info_headers_t *msg_info_headers,
00223                     const axis2_env_t *env);
00224 
00229         axis2_char_t *(AXIS2_CALL *
00230                 get_action)(
00231                     const axis2_msg_info_headers_t *msg_info_headers,
00232                     const axis2_env_t *env);
00233 
00240         axis2_status_t (AXIS2_CALL *
00241                 set_action)(
00242                     struct axis2_msg_info_headers *msg_info_headers,
00243                     const axis2_env_t *env,
00244                     const axis2_char_t *action);
00245 
00250         axis2_char_t *(AXIS2_CALL *
00251                 get_message_id)(
00252                     const axis2_msg_info_headers_t *msg_info_headers,
00253                     const axis2_env_t *env);
00254 
00261         axis2_status_t (AXIS2_CALL *
00262                 set_message_id)(
00263                     struct axis2_msg_info_headers *msg_info_headers,
00264                     const axis2_env_t *env,
00265                     const axis2_char_t *message_id);
00266 
00271         axis2_relates_to_t *(AXIS2_CALL *
00272                 get_relates_to)(
00273                     const axis2_msg_info_headers_t *msg_info_headers,
00274                     const axis2_env_t *env);
00275 
00282         axis2_status_t (AXIS2_CALL *
00283                 set_relates_to)(
00284                     struct axis2_msg_info_headers *msg_info_headers,
00285                     const axis2_env_t *env,
00286                     axis2_relates_to_t *relates_to);
00287 
00292         axis2_array_list_t *(AXIS2_CALL *
00293                 get_ref_params)(
00294                     const axis2_msg_info_headers_t *msg_info_headers,
00295                     const axis2_env_t *env);
00296 
00304         axis2_status_t (AXIS2_CALL *
00305                 add_ref_param)(
00306                     struct axis2_msg_info_headers *msg_info_headers,
00307                     const axis2_env_t *env,
00308                     axiom_node_t *ref_param);
00309 
00315         axis2_status_t (AXIS2_CALL *
00316                 free)(
00317                     struct axis2_msg_info_headers *msg_info_headers,
00318                     const axis2_env_t *env);
00319 
00320     };
00321 
00325     struct axis2_msg_info_headers
00326     {
00328         axis2_msg_info_headers_ops_t *ops;
00329     };
00330 
00331 
00338     AXIS2_EXTERN axis2_msg_info_headers_t *AXIS2_CALL
00339     axis2_msg_info_headers_create(
00340         const axis2_env_t *env,
00341         axis2_endpoint_ref_t *to,
00342         const axis2_char_t *action);
00343 
00344 
00347 #define AXIS2_MSG_INFO_HEADERS_GET_TO(msg_info_headers, env) \
00348         ((msg_info_headers)->ops->get_to(msg_info_headers, env))
00349 
00352 #define AXIS2_MSG_INFO_HEADERS_SET_TO(msg_info_headers, env, to) \
00353         ((msg_info_headers)->ops->set_to(msg_info_headers, env, to))
00354 
00357 #define AXIS2_MSG_INFO_HEADERS_GET_FROM(msg_info_headers, env) \
00358         ((msg_info_headers)->ops->get_from(msg_info_headers, env))
00359 
00362 #define AXIS2_MSG_INFO_HEADERS_SET_FROM(msg_info_headers, env, from) \
00363         ((msg_info_headers)->ops->set_from(msg_info_headers, env, from))
00364 
00367 #define AXIS2_MSG_INFO_HEADERS_GET_REPLY_TO(msg_info_headers, env) \
00368         ((msg_info_headers)->ops->get_reply_to(msg_info_headers, env))
00369 
00372 #define AXIS2_MSG_INFO_HEADERS_SET_REPLY_TO(msg_info_headers, env, reply_to) \
00373         ((msg_info_headers)->ops->set_reply_to(msg_info_headers, env, reply_to))
00374 
00377 #define AXIS2_MSG_INFO_HEADERS_SET_REPLY_TO_NONE(msg_info_headers, env, none) \
00378         ((msg_info_headers)->ops->set_reply_to_none(msg_info_headers, env, none))
00379 
00382 #define AXIS2_MSG_INFO_HEADERS_GET_REPLY_TO_NONE(msg_info_headers, env) \
00383         ((msg_info_headers)->ops->get_reply_to_none(msg_info_headers, env))
00384 
00387 #define AXIS2_MSG_INFO_HEADERS_SET_REPLY_TO_ANONYMOUS(msg_info_headers, env, anonymous) \
00388         ((msg_info_headers)->ops->set_reply_to_anonymous(msg_info_headers, env, anonymous))
00389 
00392 #define AXIS2_MSG_INFO_HEADERS_GET_REPLY_TO_ANONYMOUS(msg_info_headers, env) \
00393         ((msg_info_headers)->ops->get_reply_to_anonymous(msg_info_headers, env))
00394 
00397 #define AXIS2_MSG_INFO_HEADERS_GET_FAULT_TO(msg_info_headers, env) \
00398         ((msg_info_headers)->ops->get_fault_to(msg_info_headers, env))
00399 
00402 #define AXIS2_MSG_INFO_HEADERS_SET_FAULT_TO(msg_info_headers, env, fault_to) \
00403         ((msg_info_headers)->ops->set_fault_to(msg_info_headers, env, fault_to))
00404 
00407 #define AXIS2_MSG_INFO_HEADERS_SET_FAULT_TO_NONE(msg_info_headers, env, none) \
00408         ((msg_info_headers)->ops->set_fault_to_none(msg_info_headers, env, none))
00409 
00412 #define AXIS2_MSG_INFO_HEADERS_GET_FAULT_TO_NONE(msg_info_headers, env) \
00413         ((msg_info_headers)->ops->get_fault_to_none(msg_info_headers, env))
00414 
00417 #define AXIS2_MSG_INFO_HEADERS_SET_FAULT_TO_ANONYMOUS(msg_info_headers, env, anonymous) \
00418         ((msg_info_headers)->ops->set_fault_to_anonymous(msg_info_headers, env, anonymous))
00419 
00422 #define AXIS2_MSG_INFO_HEADERS_GET_FAULT_TO_ANONYMOUS(msg_info_headers, env) \
00423         ((msg_info_headers)->ops->get_fault_to_anonymous(msg_info_headers, env))
00424 
00427 #define AXIS2_MSG_INFO_HEADERS_GET_ACTION(msg_info_headers, env) \
00428         ((msg_info_headers)->ops->get_action(msg_info_headers, env))
00429 
00432 #define AXIS2_MSG_INFO_HEADERS_SET_ACTION(msg_info_headers, env, action) \
00433         ((msg_info_headers)->ops->set_action(msg_info_headers, env, action))
00434 
00437 #define AXIS2_MSG_INFO_HEADERS_GET_MESSAGE_ID(msg_info_headers, env) \
00438         ((msg_info_headers)->ops->get_message_id(msg_info_headers, env))
00439 
00442 #define AXIS2_MSG_INFO_HEADERS_SET_MESSAGE_ID(msg_info_headers, env, message_id) \
00443         ((msg_info_headers)->ops->set_message_id(msg_info_headers, env, message_id))
00444 
00447 #define AXIS2_MSG_INFO_HEADERS_GET_RELATES_TO(msg_info_headers, env) \
00448         ((msg_info_headers)->ops->get_relates_to(msg_info_headers, env))
00449 
00452 #define AXIS2_MSG_INFO_HEADERS_SET_RELATES_TO(msg_info_headers, env, relates_to) \
00453         ((msg_info_headers)->ops->set_relates_to(msg_info_headers, env, relates_to))
00454 
00457 #define AXIS2_MSG_INFO_HEADERS_GET_REF_PARAMS(msg_info_headers, env) \
00458         ((msg_info_headers)->ops->get_ref_params(msg_info_headers, env))
00459 
00462 #define AXIS2_MSG_INFO_HEADERS_ADD_REF_PARAM(msg_info_headers, env, ref_param) \
00463         ((msg_info_headers)->ops->add_ref_param(msg_info_headers, env, ref_param))
00464 
00467 #define AXIS2_MSG_INFO_HEADERS_FREE(msg_info_headers, env) \
00468         ((msg_info_headers)->ops->free(msg_info_headers, env))
00469 
00472 #ifdef __cplusplus
00473 }
00474 #endif
00475 
00476 #endif    /* AXIS2_MSG_INFO_HEADERS_H */

Generated on Thu Aug 31 17:32:36 2006 for Axis2/C by  doxygen 1.4.6