woden_endpoint.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_ENDPOINT_H
00019 #define WODEN_ENDPOINT_H
00020 
00028 #include <woden.h>
00029 #include <woden_endpoint_element.h>
00030 #include <woden_nested_configurable.h>
00031 #include <woden_nested_component.h>
00032 #include <woden_configurable_component.h>
00033 #include <woden_nc_name.h>
00034 
00040 typedef union woden_endpoint_base woden_endpoint_base_t;
00041 typedef struct woden_endpoint woden_endpoint_t;
00042 typedef struct woden_endpoint_ops woden_endpoint_ops_t;
00043 struct woden_documentation_element;
00044 struct woden_wsdl_component;
00045 struct woden_documentable;
00046 
00047 #ifdef __cplusplus
00048 extern "C"
00049 {
00050 #endif
00051 
00052 struct woden_endpoint_ops
00053 {
00058     axis2_status_t (AXIS2_CALL *
00059     free) (void *endpoint,
00060             const axis2_env_t *env);
00061     
00062     axis2_hash_t *(AXIS2_CALL *
00063     super_objs) (void *endpoint,
00064             const axis2_env_t *env);
00065 
00066     woden_obj_types_t (AXIS2_CALL *
00067     type) (void *endpoint,
00068             const axis2_env_t *env);
00072     struct woden_nested_configurable *(AXIS2_CALL *
00073     get_base_impl) (
00074             void *endpoint,
00075             const axis2_env_t *env);
00076 
00077     /* ************************************************************
00078      *  Endpoint interface methods (the WSDL Component model)
00079      * ************************************************************/
00080 
00081     woden_nc_name_t *(AXIS2_CALL *
00082     get_name) (
00083             void *endpoint,
00084             const axis2_env_t *env);
00085 
00086     void *(AXIS2_CALL *
00087     get_binding) (
00088             void *endpoint,
00089             const axis2_env_t *env);
00090 
00091     axis2_uri_t *(AXIS2_CALL *
00092     get_address) (
00093             void *endpoint,
00094             const axis2_env_t *env);
00095 
00096     axis2_status_t (AXIS2_CALL *
00097     set_binding_element) (
00098         void *endpoint,
00099         const axis2_env_t *env,
00100         void *binding);
00101 
00102 };
00103 
00104 union woden_endpoint_base
00105 {
00106     woden_nested_configurable_t nested_configurable;
00107     woden_endpoint_element_t endpoint_element;
00108     woden_configurable_component_t configurable_component;
00109     woden_configurable_component_t nested_component;
00110 };
00111 
00112 struct woden_endpoint
00113 {
00114     woden_endpoint_base_t base;
00115     woden_endpoint_ops_t *ops;
00116 };
00117 
00118 AXIS2_EXTERN woden_endpoint_t * AXIS2_CALL
00119 woden_endpoint_create(
00120         const axis2_env_t *env);
00121 
00122 
00123 /***************************Woden C Internal Methods***************************/
00124 AXIS2_EXTERN woden_endpoint_t * AXIS2_CALL
00125 woden_endpoint_to_endpoint_element(
00126         void *endpoint,
00127         const axis2_env_t *env);
00128 
00129 AXIS2_EXTERN woden_endpoint_t * AXIS2_CALL
00130 woden_endpoint_to_nested_element(
00131         void *endpoint,
00132         const axis2_env_t *env);
00133 
00134 AXIS2_EXTERN woden_endpoint_t * AXIS2_CALL
00135 woden_endpoint_to_documentable_element(
00136         void *endpoint,
00137         const axis2_env_t *env);
00138 
00139 AXIS2_EXTERN woden_endpoint_t * AXIS2_CALL
00140 woden_endpoint_to_nested_configurable(
00141         void *endpoint,
00142         const axis2_env_t *env);
00143 
00144 AXIS2_EXTERN woden_endpoint_t * AXIS2_CALL
00145 woden_endpoint_to_configurable(
00146         void *endpoint,
00147         const axis2_env_t *env);
00148 
00149 AXIS2_EXTERN woden_endpoint_t * AXIS2_CALL
00150 woden_endpoint_to_nested_component(
00151         void *endpoint,
00152         const axis2_env_t *env);
00153 
00154 AXIS2_EXTERN woden_endpoint_t * AXIS2_CALL
00155 woden_endpoint_to_configurable_component(
00156         void *endpoint,
00157         const axis2_env_t *env);
00158 
00159 AXIS2_EXTERN woden_endpoint_t * AXIS2_CALL
00160 woden_endpoint_to_wsdl_component(
00161         void *endpoint,
00162         const axis2_env_t *env);
00163 
00164 AXIS2_EXTERN woden_endpoint_t * AXIS2_CALL
00165 woden_endpoint_to_configurable_element(
00166         void *endpoint,
00167         const axis2_env_t *env);
00168 
00169 AXIS2_EXTERN woden_endpoint_t * AXIS2_CALL
00170 woden_endpoint_to_documentable(
00171         void *endpoint,
00172         const axis2_env_t *env);
00173 
00174 AXIS2_EXTERN woden_endpoint_t * AXIS2_CALL
00175 woden_endpoint_to_attr_extensible(
00176         void *endpoint,
00177         const axis2_env_t *env);
00178 
00179 AXIS2_EXTERN woden_endpoint_t * AXIS2_CALL
00180 woden_endpoint_to_element_extensible(
00181         void *endpoint,
00182         const axis2_env_t *env);
00183 
00184 
00185 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00186 woden_endpoint_resolve_methods(
00187         woden_endpoint_t *endpoint,
00188         const axis2_env_t *env,
00189         woden_endpoint_t *endpoint_impl,
00190         axis2_hash_t *methods);
00191 /************************End of Woden C Internal Methods***********************/
00192 
00193 #define WODEN_ENDPOINT_FREE(endpoint, env) \
00194       (((woden_endpoint_t *) endpoint)->ops->free(endpoint, env))
00195 
00196 #define WODEN_ENDPOINT_SUPER_OBJS(endpoint, env) \
00197       (((woden_endpoint_t *) endpoint)->ops->super_objs(endpoint, env))
00198 
00199 #define WODEN_ENDPOINT_TYPE(endpoint, env) \
00200       (((woden_endpoint_t *) endpoint)->ops->type(endpoint, env))
00201 
00202 #define WODEN_ENDPOINT_GET_BASE_IMPL(endpoint, env) \
00203       (((woden_endpoint_t *) endpoint)->ops->get_base_impl(endpoint, env))
00204 
00205 #define WODEN_ENDPOINT_GET_NAME(endpoint, env) \
00206       (((woden_endpoint_t *) endpoint)->ops->\
00207          get_name(endpoint, env))
00208 
00209 #define WODEN_ENDPOINT_GET_BINDING(endpoint, env) \
00210       (((woden_endpoint_t *) endpoint)->ops->\
00211          get_binding(endpoint, env))
00212 
00213 #define WODEN_ENDPOINT_GET_ADDRESS(endpoint, env) \
00214       (((woden_endpoint_t *) endpoint)->ops->\
00215          get_address(endpoint, env))
00216 
00217 #define WODEN_ENDPOINT_SET_BINDING_ELEMENT(endpoint, env, binding) \
00218       (((woden_endpoint_t *) endpoint)->ops->\
00219          set_binding_element(endpoint, env, binding))
00220 
00222 #ifdef __cplusplus
00223 }
00224 #endif
00225 #endif /* WODEN_ENDPOINT_H */

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