woden_wsdl10_endpoint_element.h

Go to the documentation of this file.
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 WODEN_WSDL10_ENDPOINT_ELEMENT_H
00019 #define WODEN_WSDL10_ENDPOINT_ELEMENT_H
00020 
00029 #include <axis2_allocator.h>
00030 #include <axis2_env.h>
00031 #include <axis2_error.h>
00032 #include <axis2_string.h>
00033 #include <axis2_utils.h>
00034 #include <axis2_hash.h>
00035 #include <axis2_qname.h>
00036 #include <axis2_uri.h>
00037 #include <woden.h>
00038 #include <woden_documentable_element.h>
00039 #include <woden_configurable_element.h>
00040 #include <woden_nested_element.h>
00041 #include <woden_nc_name.h>
00042 
00043 #ifdef __cplusplus
00044 extern "C"
00045 {
00046 #endif
00047 
00048 typedef struct woden_wsdl10_endpoint_element woden_wsdl10_endpoint_element_t;
00049 typedef struct woden_wsdl10_endpoint_element_ops woden_wsdl10_endpoint_element_ops_t;
00050 typedef union woden_wsdl10_endpoint_element_base woden_wsdl10_endpoint_element_base_t;
00051 
00057 struct woden_wsdl10_endpoint_element_ops
00058 {
00063     axis2_status_t (AXIS2_CALL *
00064     free) (
00065             void *endpoint_el,
00066             const axis2_env_t *env);
00067     
00068     woden_obj_types_t (AXIS2_CALL *
00069     type) (
00070             void *endpoint_el,
00071             const axis2_env_t *env);
00072     
00073     axis2_status_t (AXIS2_CALL *
00074     set_name) (
00075             void *endpoint_el,
00076             const axis2_env_t *env,
00077             woden_nc_name_t *name);
00078 
00079     woden_nc_name_t *(AXIS2_CALL *
00080     get_name) (
00081             void *endpoint_el,
00082             const axis2_env_t *env);
00083 
00084     axis2_status_t (AXIS2_CALL *
00085     set_binding_qname) (
00086             void *endpoint_el,
00087             const axis2_env_t *env,
00088             axis2_qname_t *qname);
00089 
00090     axis2_qname_t *(AXIS2_CALL *
00091     get_binding_qname) (
00092             void *endpoint_el,
00093             const axis2_env_t *env);
00094 
00095     void *(AXIS2_CALL *
00096     get_binding_element) (
00097             void *endpoint_el,
00098             const axis2_env_t *env);
00099 
00100     axis2_status_t (AXIS2_CALL *
00101     set_address) (
00102             void *endpoint_el,
00103             const axis2_env_t *env,
00104             axis2_uri_t *uri);
00105 
00106     axis2_uri_t *(AXIS2_CALL *
00107     get_address) (
00108             void *endpoint_el,
00109             const axis2_env_t *env);
00110 
00111 };
00112 
00113 union woden_wsdl10_endpoint_element_base
00114 {
00115     woden_documentable_element_t documentable_element;
00116     woden_configurable_element_t configurable_element;
00117     woden_nested_element_t nested_element;
00118 };
00119 
00120 struct woden_wsdl10_endpoint_element
00121 {
00122     woden_wsdl10_endpoint_element_base_t base;
00123     woden_wsdl10_endpoint_element_ops_t *ops;
00124 };
00125 
00126 /************************Woden C Internal Methods******************************/
00127 axis2_status_t AXIS2_CALL
00128 woden_wsdl10_endpoint_element_resolve_methods(
00129         woden_wsdl10_endpoint_element_t *endpoint_element,
00130         const axis2_env_t *env,
00131         axis2_hash_t *methods);
00132 /************************End of Woden C Internal Methods***********************/
00133 
00134 #define WODEN_WSDL10_ENDPOINT_ELEMENT_FREE(endpoint_el, env) \
00135       (((woden_wsdl10_endpoint_element_t *) endpoint_el)->ops->\
00136          free (endpoint_el, env))
00137 
00138 #define WODEN_WSDL10_ENDPOINT_ELEMENT_TYPE(endpoint_el, env) \
00139       (((woden_wsdl10_endpoint_element_t *) endpoint_el)->ops->\
00140          type (endpoint_el, env))
00141 
00142 #define WODEN_WSDL10_ENDPOINT_ELEMENT_SET_NAME(endpoint_el, env, name) \
00143       (((woden_wsdl10_endpoint_element_t *) endpoint_el)->ops->\
00144          set_name(endpoint_el, env, name))
00145 
00146 #define WODEN_WSDL10_ENDPOINT_ELEMENT_GET_NAME(endpoint_el, env) \
00147       (((woden_wsdl10_endpoint_element_t *) endpoint_el)->ops->\
00148          get_name(endpoint_el, env))
00149 
00150 #define WODEN_WSDL10_ENDPOINT_ELEMENT_SET_BINDING_QNAME(endpoint_el, env, qname) \
00151       (((woden_wsdl10_endpoint_element_t *) endpoint_el)->ops->\
00152          set_binding_qname(endpoint_el, env, qname))
00153 
00154 #define WODEN_WSDL10_ENDPOINT_ELEMENT_GET_BINDING_QNAME(endpoint_el, env) \
00155       (((woden_wsdl10_endpoint_element_t *) endpoint_el)->ops->\
00156          get_binding_qname(endpoint_el, env))
00157 
00158 #define WODEN_WSDL10_ENDPOINT_ELEMENT_GET_BINDING_ELEMENT(endpoint_el, env) \
00159       (((woden_wsdl10_endpoint_element_t *) endpoint_el)->ops->\
00160          get_binding_element(endpoint_el, env))
00161 
00162 #define WODEN_WSDL10_ENDPOINT_ELEMENT_SET_ADDRESS(endpoint_el, env, uri) \
00163       (((woden_wsdl10_endpoint_element_t *) endpoint_el)->ops->\
00164          set_address(endpoint_el, env, uri))
00165 
00166 #define WODEN_WSDL10_ENDPOINT_ELEMENT_GET_ADDRESS(endpoint_el, env) \
00167       (((woden_wsdl10_endpoint_element_t *) endpoint_el)->ops->\
00168          get_address(endpoint_el, env))
00169 
00171 #ifdef __cplusplus
00172 }
00173 #endif
00174 #endif /* WODEN_WSDL10_ENDPOINT_ELEMENT_H */

Generated on Wed Dec 20 20:14:11 2006 for Axis2/C by  doxygen 1.5.1