axis2_msg.h

00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  *
00009  *      http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 
00018 #ifndef AXIS2_MSG_H
00019 #define AXIS2_MSG_H
00020 
00031 #include <axutil_param_container.h>
00032 #include <axis2_op.h>
00033 #include <axutil_array_list.h>
00034 #include <axis2_description.h>
00035 #include <axis2_phase_meta.h>
00036 
00037 #define AXIS2_MSG_IN            "InMessage"
00038 #define AXIS2_MSG_OUT           "OutMessage"
00039 #define AXIS2_MSG_IN_FAULT      "InFaultMessage"
00040 #define AXIS2_MSG_OUT_FAULT     "OutFaultMessage"
00041 
00042 
00043 #ifdef __cplusplus
00044 extern "C"
00045 {
00046 #endif
00047 
00049     typedef struct axis2_msg axis2_msg_t;
00050 
00056     AXIS2_EXTERN axis2_msg_t *AXIS2_CALL
00057     axis2_msg_create(const axutil_env_t *env);
00058 
00065     AXIS2_EXTERN void AXIS2_CALL
00066     axis2_msg_free(axis2_msg_t *msg,
00067         const axutil_env_t *env);
00068 
00077     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00078     axis2_msg_add_param(axis2_msg_t *msg,
00079         const axutil_env_t *env,
00080         axutil_param_t *param);
00081 
00090     AXIS2_EXTERN axutil_param_t *AXIS2_CALL
00091     axis2_msg_get_param(const axis2_msg_t *msg,
00092         const axutil_env_t *env,
00093         const axis2_char_t *name);
00094 
00102     AXIS2_EXTERN axutil_array_list_t *AXIS2_CALL
00103     axis2_msg_get_all_params(const axis2_msg_t *msg,
00104         const axutil_env_t *env);
00105 
00113     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
00114     axis2_msg_is_param_locked(axis2_msg_t *msg,
00115         const axutil_env_t *env,
00116         const axis2_char_t *param_name);
00117 
00126     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00127     axis2_msg_set_parent(axis2_msg_t *msg,
00128         const axutil_env_t *env,
00129         axis2_op_t *op);
00130 
00138     AXIS2_EXTERN axis2_op_t *AXIS2_CALL
00139     axis2_msg_get_parent(const axis2_msg_t *msg,
00140         const axutil_env_t *env);
00141 
00149     AXIS2_EXTERN axutil_array_list_t *AXIS2_CALL
00150     axis2_msg_get_flow( const axis2_msg_t *msg,
00151         const axutil_env_t *env);
00152 
00161     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00162     axis2_msg_set_flow(axis2_msg_t *msg,
00163         const axutil_env_t *env,
00164         axutil_array_list_t *flow);
00165 
00172     AXIS2_EXTERN const axis2_char_t *AXIS2_CALL
00173     axis2_msg_get_direction(const axis2_msg_t *msg,
00174         const axutil_env_t *env);
00175 
00183     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00184     axis2_msg_set_direction(axis2_msg_t *msg,
00185         const axutil_env_t *env,
00186         const axis2_char_t *direction);
00187 
00194     AXIS2_EXTERN const axutil_qname_t *AXIS2_CALL
00195     axis2_msg_get_element_qname(const axis2_msg_t *msg,
00196         const axutil_env_t *env);
00197 
00206     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00207     axis2_msg_set_element_qname(axis2_msg_t *msg,
00208         const axutil_env_t *env,
00209         const axutil_qname_t *element_qname);
00210 
00217     AXIS2_EXTERN const axis2_char_t *AXIS2_CALL
00218     axis2_msg_get_name(const axis2_msg_t *msg,
00219         const axutil_env_t *env);
00220 
00228     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00229     axis2_msg_set_name(axis2_msg_t *msg,
00230         const axutil_env_t *env,
00231         const axis2_char_t *name);
00232 
00234 #ifdef __cplusplus
00235 }
00236 #endif
00237 #endif  /* AXIS2_MSG_H */

Generated on Thu May 3 12:31:01 2007 for Axis2/C by  doxygen 1.4.6