# 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
    00023 #ifdef __cplusplus
    00024 extern "C"
    00025 {
    00026 #endif
    00027
    00028 typedef struct sandesha2_sender_bean sandesha2_sender_bean_t;
    00029
    00030 /* constructors
    00031  */
    00032 AXIS2_EXTERN sandesha2_sender_bean_t* AXIS2_CALL
    00033 sandesha2_sender_bean_create(
    00034     const axutil_env_t *env);
    00035
    00036 AXIS2_EXTERN sandesha2_sender_bean_t* AXIS2_CALL
    00037 sandesha2_sender_bean_create_with_data(
    00038     const axutil_env_t *env,
    00039     axis2_char_t *msg_id,
    00040     axis2_char_t *key,
    00041     axis2_bool_t send,
    00042     long        time_to_send,
    00043     axis2_char_t *int_seq_id,
    00044     long msg_no);
    00045
    00046 void AXIS2_CALL
    00047 sandesha2_sender_bean_free (
    00048     sandesha2_sender_bean_t *sender,
    00049     const axutil_env_t *env);
    00050
    00051 axis2_char_t* AXIS2_CALL
    00052 sandesha2_sender_bean_get_msg_ctx_ref_key (
    00053     sandesha2_sender_bean_t *sender,
    00054     const axutil_env_t *env);
    00055
    00056 void AXIS2_CALL
    00057 sandesha2_sender_bean_set_msg_ctx_ref_key (
    00058     sandesha2_sender_bean_t *sender,
    00059     const axutil_env_t *env,
    00060     axis2_char_t *ref_key);
    00061
    00062 axis2_char_t* AXIS2_CALL
    00063 sandesha2_sender_bean_get_msg_id (
    00064     sandesha2_sender_bean_t *sender,
    00065     const axutil_env_t *env);
    00066
    00067 void AXIS2_CALL
    00068 sandesha2_sender_bean_set_msg_id (
    00069     sandesha2_sender_bean_t *sender,
    00070     const axutil_env_t *env,
    00071 axis2_char_t *msg_id);
    00072
    00073 axis2_bool_t AXIS2_CALL
    00074 sandesha2_sender_bean_is_send (
    00075     sandesha2_sender_bean_t *sender,
    00076     const axutil_env_t *env);
    00077
    00078 void AXIS2_CALL
    00079 sandesha2_sender_bean_set_send (
    00080     sandesha2_sender_bean_t *sender,
    00081     const axutil_env_t *env,
    00082     axis2_bool_t send);
    00083
    00084 axis2_char_t* AXIS2_CALL
    00085 sandesha2_sender_bean_get_internal_seq_id (
    00086     sandesha2_sender_bean_t *sender,
    00087     const axutil_env_t *env);
    00088
    00089 void AXIS2_CALL
    00090 sandesha2_sender_bean_set_internal_seq_id (
    00091     sandesha2_sender_bean_t *sender,
    00092     const axutil_env_t *env,
    00093     axis2_char_t *int_seq_id);
    00094
    00095 int AXIS2_CALL
    00096 sandesha2_sender_bean_get_sent_count (
    00097     sandesha2_sender_bean_t *sender,
    00098         const axutil_env_t *env);
    00099
    00100 void AXIS2_CALL
    00101 sandesha2_sender_bean_set_sent_count (
    00102     sandesha2_sender_bean_t *sender,
    00103     const axutil_env_t *env,
    00104     int sent_count);
    00105
    00106 long AXIS2_CALL
    00107 sandesha2_sender_bean_get_msg_no (
    00108     sandesha2_sender_bean_t *sender,
    00109     const axutil_env_t *env);
    00110
    00111 void AXIS2_CALL
    00112 sandesha2_sender_bean_set_msg_no (
    00113     sandesha2_sender_bean_t *sender,
    00114     const axutil_env_t *env,
    00115     long msg_no);
    00116
    00117 axis2_bool_t AXIS2_CALL
    00118 sandesha2_sender_bean_is_resend (
    00119     sandesha2_sender_bean_t *sender,
    00120     const axutil_env_t *env);
    00121
    00122 void AXIS2_CALL
    00123 sandesha2_sender_bean_set_resend (
    00124     sandesha2_sender_bean_t *sender,
    00125     const axutil_env_t *env,
    00126     axis2_bool_t resend);
    00127
    00128 long AXIS2_CALL
    00129 sandesha2_sender_bean_get_time_to_send (
    00130     sandesha2_sender_bean_t *sender,
    00131     const axutil_env_t *env);
    00132
    00133 void AXIS2_CALL
    00134 sandesha2_sender_bean_set_time_to_send (
    00135     sandesha2_sender_bean_t *sender,
    00136     const axutil_env_t *env,
    00137     long time_to_send);
    00138
    00139 int AXIS2_CALL
    00140 sandesha2_sender_bean_get_msg_type (
    00141     sandesha2_sender_bean_t *sender,
    00142     const axutil_env_t *env);
    00143
    00144 void AXIS2_CALL
    00145 sandesha2_sender_bean_set_msg_type (
    00146     sandesha2_sender_bean_t *sender,
    00147     const axutil_env_t *env,
    00148     int msg_type);
    00149
    00150 axis2_char_t* AXIS2_CALL
    00151 sandesha2_sender_bean_get_seq_id(
    00152     sandesha2_sender_bean_t *sender,
    00153     const axutil_env_t *env);
    00154
    00155 void AXIS2_CALL
    00156 sandesha2_sender_bean_set_seq_id (
    00157     sandesha2_sender_bean_t *sender,
    00158     const axutil_env_t *env,
    00159     axis2_char_t *seq_id);
    00160
    00161 axis2_char_t* AXIS2_CALL
    00162 sandesha2_sender_bean_get_wsrm_anon_uri(
    00163     sandesha2_sender_bean_t *sender,
    00164         const axutil_env_t *env);
    00165
    00166 void AXIS2_CALL
    00167 sandesha2_sender_bean_set_wsrm_anon_uri (
    00168     sandesha2_sender_bean_t *sender,
    00169     const axutil_env_t *env,
    00170     axis2_char_t *anon_uri);
    00171
    00172 void AXIS2_CALL
    00173 sandesha2_sender_bean_set_to_address (
    00174     sandesha2_sender_bean_t *sender,
    00175     const axutil_env_t *env,
    00176     axis2_char_t *to_address);
    00177
    00178 axis2_char_t* AXIS2_CALL
    00179 sandesha2_sender_bean_get_to_address(
    00180     sandesha2_sender_bean_t *sender,
    00181         const axutil_env_t *env);
    00182
    00183 #ifdef __cplusplus
    00184 }
    00185
    00186 #endif
    00187
    00188 #endif /* End of SANDESHA2_SENDER_BEAN_H */