sandesha2_sender_bean.h

00001 /*
00002  * copyright 1999-2004 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
00005  * use this file except in compliance with the License. You may obtain a copy of
00006  * 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, WITHOUT
00012  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
00013  * License for the specific language governing permissions and limitations under
00014  * the License.
00015  */
00016 
00017 #ifndef SANDESHA2_SENDER_BEAN_H
00018 #define SANDESHA2_SENDER_BEAN_H
00019 
00020 #include <axutil_utils_defines.h>
00021 #include <axutil_env.h>
00022 #include <sandesha2_rm_bean.h>
00023 
00024 #ifdef __cplusplus
00025 extern "C"
00026 {
00027 #endif
00028 
00029 typedef struct sandesha2_sender_bean sandesha2_sender_bean_t;
00030 struct sandesha2_transaction;
00031 
00032 AXIS2_DECLARE_DATA struct sandesha2_sender_bean
00033 {
00034     sandesha2_rm_bean_t rm_bean;
00035 };
00036 
00037 /* constructors 
00038  */
00039 AXIS2_EXTERN sandesha2_sender_bean_t* AXIS2_CALL
00040 sandesha2_sender_bean_create(
00041     const axutil_env_t *env);
00042 
00043 AXIS2_EXTERN sandesha2_sender_bean_t* AXIS2_CALL
00044 sandesha2_sender_bean_create_with_data(
00045     const axutil_env_t *env,
00046     axis2_char_t *msg_id,
00047     axis2_char_t *key,
00048     axis2_bool_t send,
00049     long        time_to_send,
00050     axis2_char_t *int_seq_id,
00051     long msg_no);
00052 
00053 void AXIS2_CALL
00054 sandesha2_sender_bean_free (
00055     sandesha2_rm_bean_t *sender,
00056     const axutil_env_t *env);
00057 
00058 struct sandesha2_rm_bean * AXIS2_CALL
00059 sandesha2_sender_bean_get_base( 
00060     sandesha2_rm_bean_t* sender,
00061     const axutil_env_t *env);
00062 
00063 void AXIS2_CALL
00064 sandesha2_sender_bean_set_base (
00065     sandesha2_sender_bean_t *sender,
00066     const axutil_env_t *env, 
00067     struct sandesha2_rm_bean* rm_bean);
00068 
00069 axis2_char_t* AXIS2_CALL
00070 sandesha2_sender_bean_get_msg_ctx_ref_key (
00071     sandesha2_sender_bean_t *sender,
00072     const axutil_env_t *env);
00073 
00074 void AXIS2_CALL
00075 sandesha2_sender_bean_set_msg_ctx_ref_key (
00076     sandesha2_sender_bean_t *sender,
00077     const axutil_env_t *env,
00078     axis2_char_t *ref_key);
00079 
00080 axis2_char_t* AXIS2_CALL
00081 sandesha2_sender_bean_get_msg_id (
00082     sandesha2_rm_bean_t *sender,
00083     const axutil_env_t *env);
00084 
00085 void AXIS2_CALL 
00086 sandesha2_sender_bean_set_msg_id (
00087     sandesha2_sender_bean_t *sender,
00088     const axutil_env_t *env,
00089 axis2_char_t *msg_id);
00090 
00091 axis2_bool_t AXIS2_CALL
00092 sandesha2_sender_bean_is_send (
00093     sandesha2_sender_bean_t *sender,
00094     const axutil_env_t *env);
00095 
00096 void AXIS2_CALL 
00097 sandesha2_sender_bean_set_send (
00098     sandesha2_sender_bean_t *sender,
00099     const axutil_env_t *env,
00100 axis2_bool_t send);
00101 
00102 axis2_char_t* AXIS2_CALL
00103 sandesha2_sender_bean_get_internal_seq_id (
00104     sandesha2_sender_bean_t *sender,
00105     const axutil_env_t *env);
00106 
00107 void AXIS2_CALL 
00108 sandesha2_sender_bean_set_internal_seq_id (
00109     sandesha2_sender_bean_t *sender,
00110     const axutil_env_t *env,
00111     axis2_char_t *int_seq_id);
00112 
00113 int AXIS2_CALL 
00114 sandesha2_sender_bean_get_sent_count (
00115     sandesha2_sender_bean_t *sender,
00116         const axutil_env_t *env);
00117 
00118 void AXIS2_CALL 
00119 sandesha2_sender_bean_set_sent_count (
00120     sandesha2_sender_bean_t *sender,
00121     const axutil_env_t *env,
00122     int sent_count);
00123 
00124 long AXIS2_CALL
00125 sandesha2_sender_bean_get_msg_no (
00126     sandesha2_sender_bean_t *sender,
00127     const axutil_env_t *env);
00128 
00129 void AXIS2_CALL
00130 sandesha2_sender_bean_set_msg_no (
00131     sandesha2_sender_bean_t *sender,
00132     const axutil_env_t *env,
00133     long msg_no);
00134 
00135 axis2_bool_t AXIS2_CALL
00136 sandesha2_sender_bean_is_resend (
00137     sandesha2_sender_bean_t *sender,
00138     const axutil_env_t *env);
00139 
00140 void AXIS2_CALL
00141 sandesha2_sender_bean_set_resend (
00142     sandesha2_sender_bean_t *sender,
00143     const axutil_env_t *env,
00144     axis2_bool_t resend);
00145 
00146 long AXIS2_CALL
00147 sandesha2_sender_bean_get_time_to_send (
00148     sandesha2_sender_bean_t *sender,
00149     const axutil_env_t *env);
00150 
00151 void AXIS2_CALL
00152 sandesha2_sender_bean_set_time_to_send (
00153     sandesha2_sender_bean_t *sender,
00154     const axutil_env_t *env,
00155     long time_to_send);
00156 
00157 int AXIS2_CALL
00158 sandesha2_sender_bean_get_msg_type (
00159     sandesha2_sender_bean_t *sender,
00160     const axutil_env_t *env);
00161 
00162 void AXIS2_CALL
00163 sandesha2_sender_bean_set_msg_type (
00164     sandesha2_sender_bean_t *sender,
00165     const axutil_env_t *env,
00166     int msg_type);
00167 
00168 axis2_char_t* AXIS2_CALL
00169 sandesha2_sender_bean_get_seq_id(
00170     sandesha2_sender_bean_t *sender,
00171     const axutil_env_t *env);
00172 
00173 void AXIS2_CALL
00174 sandesha2_sender_bean_set_seq_id (
00175     sandesha2_sender_bean_t *sender,
00176     const axutil_env_t *env,
00177     axis2_char_t *seq_id);
00178 
00179 axis2_char_t* AXIS2_CALL
00180 sandesha2_sender_bean_get_wsrm_anon_uri(
00181     sandesha2_sender_bean_t *sender,
00182         const axutil_env_t *env);
00183 
00184 void AXIS2_CALL
00185 sandesha2_sender_bean_set_wsrm_anon_uri (
00186     sandesha2_sender_bean_t *sender,
00187     const axutil_env_t *env,
00188     axis2_char_t *anon_uri);
00189 
00190 void AXIS2_CALL
00191 sandesha2_sender_bean_set_to_address (
00192     sandesha2_sender_bean_t *sender,
00193     const axutil_env_t *env,
00194     axis2_char_t *to_address);
00195 
00196 axis2_char_t* AXIS2_CALL
00197 sandesha2_sender_bean_get_to_address(
00198     sandesha2_sender_bean_t *sender,
00199         const axutil_env_t *env);
00200 
00201 void AXIS2_CALL
00202 sandesha2_sender_bean_set_id( 
00203     sandesha2_rm_bean_t *sender_bean,
00204         const axutil_env_t *env, 
00205     long id);
00206 
00207 long AXIS2_CALL
00208 sandesha2_sender_bean_get_id( 
00209     sandesha2_rm_bean_t *sender_bean,
00210         const axutil_env_t *env);
00211 
00212 void AXIS2_CALL
00213 sandesha2_sender_bean_set_transaction( 
00214     sandesha2_rm_bean_t *sender_bean,
00215         const axutil_env_t *env, 
00216     struct sandesha2_transaction *transaction);
00217 
00218 struct sandesha2_transaction *AXIS2_CALL
00219 sandesha2_sender_bean_get_transaction( 
00220     sandesha2_rm_bean_t *sender_bean,
00221         const axutil_env_t *env);
00222 
00223 #ifdef __cplusplus
00224 }
00225 
00226 #endif
00227         
00228 #endif /* End of SANDESHA2_SENDER_BEAN_H */

Generated on Mon Oct 1 17:19:03 2007 for Sandesha2/C by  doxygen 1.5.3