You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by da...@apache.org on 2005/11/24 04:44:30 UTC

svn commit: r348630 - in /webservices/axis2/trunk/c: include/ modules/core/description/src/ modules/core/transport/

Author: damitha
Date: Wed Nov 23 19:44:18 2005
New Revision: 348630

URL: http://svn.apache.org/viewcvs?rev=348630&view=rev
Log:
transport_in_desc implementation

Added:
    webservices/axis2/trunk/c/modules/core/description/src/transport_in_desc.c
    webservices/axis2/trunk/c/modules/core/description/src/transport_out_desc.c
    webservices/axis2/trunk/c/modules/core/transport/Makefile.am
    webservices/axis2/trunk/c/modules/core/transport/Makefile.in
Modified:
    webservices/axis2/trunk/c/include/axis2_transport_in_desc.h
    webservices/axis2/trunk/c/modules/core/transport/axis2_transport_listener.h

Modified: webservices/axis2/trunk/c/include/axis2_transport_in_desc.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_transport_in_desc.h?rev=348630&r1=348629&r2=348630&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_transport_in_desc.h (original)
+++ webservices/axis2/trunk/c/include/axis2_transport_in_desc.h Wed Nov 23 19:44:18 2005
@@ -0,0 +1,199 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2_TRANSPORT_IN_DESC_H
+#define AXIS2_TRANSPORT_IN_DESC_H
+
+/**
+ * @file axis2_transport_in_desc.h
+ * @brief Axis2 description transport in interface
+ */
+
+#include <axis2.h>
+#include <axis2_error.h>
+#include <axis2_defines.h>
+#include <axis2_env.h>
+#include <axis2_allocator.h>
+#include <axis2_qname.h>
+#include <axis2_array_list.h>
+#include <axis2_transport_listener.h>
+#include <axis2_phase_meta.h>
+#include <axis2_phase.h>
+#include <axis2_flow.h>
+#include <wsdl.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct axis2_phase;
+struct axis2_transport_listener;    
+typedef struct axis2_transport_in_desc axis2_transport_in_desc_t;
+typedef struct axis2_transport_in_desc_ops axis2_transport_in_desc_ops_t;
+
+/** @defgroup axis2_transport_in_desc Transport in
+ * @ingroup axis2_descriptions
+ * @{
+ */
+
+/** 
+ * @brief Description Transport In operations struct
+ * Encapsulator struct for operations of axis2_transport_in_desc
+ */
+AXIS2_DECLARE_DATA struct axis2_transport_in_desc_ops
+{
+	/** De-allocate memory
+  	 * @return status code
+  	 */
+	axis2_status_t (AXIS2_CALL *free)(
+                    axis2_transport_in_desc_t *transport_in_desc,
+			        axis2_env_t **env);
+    
+    /**
+     * @return
+     */
+    axis2_qname_t *(AXIS2_CALL *
+    get_qname) (struct axis2_transport_in_desc *transport_in,
+                                            axis2_env_t **env);
+    
+    /**
+     * @param name
+     */
+    axis2_status_t (AXIS2_CALL *
+    set_qname) (struct axis2_transport_in_desc *transport_in,
+                                            axis2_env_t **env,
+                                            axis2_qname_t *qname);
+    
+    struct axis2_flow *(AXIS2_CALL *
+    get_inflow) (struct axis2_transport_in_desc *transport_in,
+                                            axis2_env_t **env);
+    
+    axis2_status_t (AXIS2_CALL *
+    set_inflow) (struct axis2_transport_in_desc *transport_in,
+                                            axis2_env_t **env,
+                                            struct axis2_flow *inflow);
+    
+    struct axis2_flow *(AXIS2_CALL *
+    get_faultflow) (struct axis2_transport_in_desc *transport_in,
+                                            axis2_env_t **env);
+    
+    axis2_status_t (AXIS2_CALL *
+    set_faultflow) (struct axis2_transport_in_desc *transport_in,
+                                            axis2_env_t **env,
+                                            struct axis2_flow *faultflow);
+    
+    /**
+     * @return
+     */
+    struct axis2_transport_listener * (AXIS2_CALL *
+    get_recv) (struct axis2_transport_in_desc *transport_in,
+                                            axis2_env_t **env);
+    
+    /**
+     * @param receiver
+     */
+    axis2_status_t (AXIS2_CALL *
+    set_recv) (struct axis2_transport_in_desc *transport_in,
+                                            axis2_env_t **env,
+                                            struct axis2_transport_listener *recv);
+    
+    struct axis2_phase * (AXIS2_CALL *
+    get_inphase) (struct axis2_transport_in_desc *transport_in,
+                                            axis2_env_t **env);
+    
+    axis2_status_t (AXIS2_CALL *
+    set_inphase) (struct axis2_transport_in_desc *transport_in,
+                                            axis2_env_t **env,
+                                            struct axis2_phase *inphase);
+    
+    struct axis2_phase *(AXIS2_CALL *
+    get_faultphase) (struct axis2_transport_in_desc *transport_in,
+                                            axis2_env_t **env);
+    
+    axis2_status_t (AXIS2_CALL *
+    set_faultphase) (struct axis2_transport_in_desc *transport_in,
+                                            axis2_env_t **env,
+                                            struct axis2_phase *faultphase);
+        
+
+};
+
+/** 
+ * @brief Transport In struct  
+ */  
+AXIS2_DECLARE_DATA struct axis2_transport_in_desc
+{
+	axis2_transport_in_desc_ops_t *ops;
+    axis2_param_container_t *param_container;
+};
+
+/**
+ * Creates phase holder struct
+ * @return pointer to newly created phase holder
+ */
+AXIS2_DECLARE(axis2_transport_in_desc_t *) 
+axis2_transport_in_desc_create_with_qname (axis2_env_t **env, axis2_qname_t *qname);
+
+/*************************** Function macros **********************************/
+
+#define AXIS2_TRANSPORT_IN_DESC_FREE(transport_in_desc, env) \
+		((transport_in_desc->ops)->free (transport_in_desc, env))
+
+#define AXIS2_TRANSPORT_IN_DESC_GET_QNAME(transport_in_desc, env, phase_name) \
+		((transport_in_desc->ops)->get_qname (transport_in_desc, env, phase_name))
+
+#define AXIS2_TRANSPORT_IN_DESC_SET_QNAME(transport_in_desc, env, handler, qname) \
+		((transport_in_desc->ops)->set_qname (transport_in_desc, env, handler, qname))
+
+#define AXIS2_TRANSPORT_IN_DESC_GET_INFLOW(transport_in_desc, env, phase_name) \
+		((transport_in_desc->ops)->get_inflow (transport_in_desc, env, phase_name))
+
+#define AXIS2_TRANSPORT_IN_DESC_SET_INFLOW(transport_in_desc, env, inflow) \
+		((transport_in_desc->ops)->set_inflow (transport_in_desc, env, inflow))       
+
+#define AXIS2_TRANSPORT_IN_DESC_GET_FAULTFLOW(transport_in_desc, env) \
+		((transport_in_desc->ops)->get_faultflow (transport_in_desc, env)) 
+        
+#define AXIS2_TRANSPORT_IN_DESC_SET_FAULTFLOW(transport_in_desc, env, faultflow) \
+		((transport_in_desc->ops)->set_faultflow (transport_in_desc, env, faultflow)) 
+
+#define AXIS2_TRANSPORT_IN_DESC_GET_RECV(transport_in_desc, env) \
+		((transport_in_desc->ops)->get_recv (transport_in_desc, env)) 
+        
+#define AXIS2_TRANSPORT_IN_DESC_SET_RECV(transport_in_desc, env, recv) \
+		((transport_in_desc->ops)->set_recv (transport_in_desc, env, recv)) 
+
+#define AXIS2_TRANSPORT_IN_DESC_GET_INPHASE(transport_in_desc, env) \
+		((transport_in_desc->ops)->get_inphase (transport_in_desc, env)) 
+        
+#define AXIS2_TRANSPORT_IN_DESC_SET_INPHASE(transport_in_desc, env, inphase) \
+		((transport_in_desc->ops)->set_inphase (transport_in_desc, env, inphase)) 
+
+#define AXIS2_TRANSPORT_IN_DESC_GET_FAULTPHASE(transport_in_desc, env) \
+		((transport_in_desc->ops)->get_faultphase (transport_in_desc, env)) 
+        
+#define AXIS2_TRANSPORT_IN_DESC_SET_FAULTPHASE(transport_in_desc, env, faultphase) \
+		((transport_in_desc->ops)->set_faultphase (transport_in_desc, env, faultphase))
+
+/*************************** End of function macros ***************************/
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+#endif  /* AXIS2_TRANSPORT_IN_DESC_H */

Added: webservices/axis2/trunk/c/modules/core/description/src/transport_in_desc.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/src/transport_in_desc.c?rev=348630&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/src/transport_in_desc.c (added)
+++ webservices/axis2/trunk/c/modules/core/description/src/transport_in_desc.c Wed Nov 23 19:44:18 2005
@@ -0,0 +1,396 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ 
+#include <axis2_transport_in_desc.h>
+    
+/** 
+ * @brief Description transport in struct impl
+ * Transport in
+ * Represents a incoming transport deployed in AXis2
+ */ 
+typedef struct axis2_transport_in_desc_impl
+{
+	axis2_transport_in_desc_t transport_in;
+    
+    /** Field paramInclude */
+    struct axis2_param_container *param_container;
+    
+    /** 
+     * Field flowInclude 
+     * This will have a shallow copy and will not be freed by the descructor
+     */
+    struct axis2_flow *inflow;
+    
+    /** 
+     * Field flowInclude 
+     * This will have a shallow copy and will not be freed by the descructor
+     */
+    struct axis2_flow *faultflow;
+        
+    /** 
+     * Field name
+     * This will have a shallow copy and will not be freed by the descructor
+     */
+    axis2_qname_t *qname;
+    
+    /**
+     * This will have a shallow copy and will not be freed by the descructor
+     */
+    struct axis2_transport_listener *recv;
+    
+    /** to store handler in inFlow */
+    struct axis2_phase *inphase;
+        
+    /** to store handler Fault in inFlow */
+    struct axis2_phase *faultphase;
+    
+    
+} axis2_transport_in_desc_impl_t;
+
+#define AXIS2_INTF_TO_IMPL(transport_in) ((axis2_transport_in_desc_impl_t *)transport_in)
+
+/************************* Function prototypes ********************************/
+
+axis2_status_t AXIS2_CALL
+axis2_transport_in_desc_free (
+                axis2_transport_in_desc_t *transport_in,
+				axis2_env_t **env);
+
+axis2_qname_t *AXIS2_CALL
+axis2_transport_in_desc_get_qname(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_transport_in_desc_set_qname(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env,
+                                        axis2_qname_t *qname);
+
+struct axis2_flow *AXIS2_CALL
+axis2_transport_in_desc_get_inflow(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_transport_in_desc_set_inflow(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env,
+                                        struct axis2_flow *inflow);
+
+struct axis2_flow *AXIS2_CALL
+axis2_transport_in_desc_get_faultflow(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_transport_in_desc_set_faultflow(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env,
+                                        struct axis2_flow *faultflow);
+
+struct axis2_transport_listener * AXIS2_CALL
+axis2_transport_in_desc_get_recv(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_transport_in_desc_set_recv(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env,
+                                        struct axis2_transport_listener *recv);
+
+struct axis2_phase * AXIS2_CALL
+axis2_transport_in_desc_get_inphase(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_transport_in_desc_set_inphase(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env,
+                                        struct axis2_phase *inphase);
+                                            
+struct axis2_phase *AXIS2_CALL
+axis2_transport_in_desc_get_faultphase(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env);
+
+axis2_status_t AXIS2_CALL
+axis2_transport_in_desc_set_faultphase(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env,
+                                        struct axis2_phase *faultphase);
+
+
+/************************** End of function prototypes ************************/
+
+axis2_transport_in_desc_t * AXIS2_CALL 
+axis2_transport_in_create_with_qname (axis2_env_t **env, axis2_qname_t *qname)
+{
+    axis2_transport_in_desc_impl_t *transport_in_impl = NULL;
+    transport_in_impl->param_container = NULL;
+    transport_in_impl->qname = NULL;
+    transport_in_impl->inphase = NULL;
+    transport_in_impl->faultphase = NULL;
+    transport_in_impl->inflow = NULL;
+    transport_in_impl->faultflow = NULL;
+    transport_in_impl->recv = NULL;
+    transport_in_impl->transport_in.ops = NULL;
+    
+    
+	AXIS2_ENV_CHECK(env, NULL);
+    AXIS2_PARAM_CHECK((*env)->error, qname, NULL);
+	
+	transport_in_impl = (axis2_transport_in_desc_impl_t *) AXIS2_MALLOC((*env)->
+        allocator, sizeof(axis2_transport_in_desc_impl_t));
+	
+	if(NULL == transport_in_impl)
+        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, NULL); 
+    
+    transport_in_impl->param_container = axis2_param_container_create(env);
+    if(NULL == transport_in_impl->param_container)
+    {
+        axis2_transport_in_desc_free(&(transport_in_impl->transport_in), env);
+        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, NULL);
+    }
+    
+    transport_in_impl->qname = qname;
+    
+    transport_in_impl->inphase = axis2_phase_create(env, AXIS2_TRANSPORT_PHASE);
+    
+    transport_in_impl->faultphase = axis2_phase_create(env, AXIS2_TRANSPORT_PHASE);
+    
+	transport_in_impl->transport_in.ops = 
+		AXIS2_MALLOC ((*env)->allocator, sizeof(axis2_transport_in_desc_ops_t));
+	if(NULL == transport_in_impl->transport_in.ops)
+    {
+        axis2_transport_in_desc_free(&(transport_in_impl->transport_in), env);
+		AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, NULL);
+    }
+    
+    transport_in_impl->transport_in.ops->free = axis2_transport_in_desc_free;
+    
+	transport_in_impl->transport_in.ops->get_qname =  
+        axis2_transport_in_desc_get_qname;
+	transport_in_impl->transport_in.ops->set_qname =  
+        axis2_transport_in_desc_set_qname;
+	transport_in_impl->transport_in.ops->get_inflow =  
+        axis2_transport_in_desc_get_inflow;
+	transport_in_impl->transport_in.ops->set_inflow = 
+        axis2_transport_in_desc_set_inflow;
+    transport_in_impl->transport_in.ops->get_faultflow = 
+        axis2_transport_in_desc_get_faultflow;
+    transport_in_impl->transport_in.ops->set_faultflow = 
+        axis2_transport_in_desc_set_faultflow;
+    transport_in_impl->transport_in.ops->get_recv = 
+        axis2_transport_in_desc_get_recv;
+    transport_in_impl->transport_in.ops->set_recv = 
+        axis2_transport_in_desc_set_recv;
+    transport_in_impl->transport_in.ops->get_inphase = 
+        axis2_transport_in_desc_get_inphase;
+    transport_in_impl->transport_in.ops->set_inphase = 
+        axis2_transport_in_desc_set_inphase;
+    transport_in_impl->transport_in.ops->get_faultphase = 
+        axis2_transport_in_desc_get_faultphase;
+    transport_in_impl->transport_in.ops->set_faultphase = 
+        axis2_transport_in_desc_set_faultphase;
+    
+	return &(transport_in_impl->transport_in);
+}
+
+/***************************Function implementation****************************/
+
+axis2_status_t AXIS2_CALL 
+axis2_transport_in_desc_free (axis2_transport_in_desc_t *transport_in, 
+                            axis2_env_t **env)
+{
+    axis2_transport_in_desc_impl_t *transport_in_impl = 
+        AXIS2_INTF_TO_IMPL(transport_in);
+    
+    AXIS2_FUNC_PARAM_CHECK(transport_in, env, AXIS2_FAILURE);
+    
+	if(NULL != transport_in->ops)
+        AXIS2_FREE((*env)->allocator, transport_in->ops);
+    
+    if(NULL != transport_in_impl->param_container)
+    {
+        AXIS2_PARAM_CONTAINER_FREE(transport_in_impl->param_container, env);
+    }
+    
+    if(NULL != transport_in_impl->inphase)
+    {
+        AXIS2_PHASE_FREE(transport_in_impl->inphase, env);
+    }
+    
+    if(NULL != transport_in_impl->faultphase)
+    {
+        AXIS2_PHASE_FREE(transport_in_impl->faultphase, env);
+    }
+    
+    AXIS2_FREE((*env)->allocator, transport_in_impl);
+    
+	return AXIS2_SUCCESS;
+}
+
+axis2_qname_t *AXIS2_CALL
+axis2_transport_in_desc_get_qname(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env) 
+{
+    AXIS2_FUNC_PARAM_CHECK(transport_in, env, NULL);
+    return AXIS2_INTF_TO_IMPL(transport_in)->qname;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_transport_in_desc_set_qname(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env,
+                                        axis2_qname_t *qname) 
+{
+    axis2_transport_in_desc_impl_t *transport_in_impl = AXIS2_INTF_TO_IMPL(transport_in);
+    AXIS2_FUNC_PARAM_CHECK(transport_in, env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, qname, AXIS2_FAILURE);
+    
+    if(transport_in_impl->qname)
+    {
+        AXIS2_PHASE_FREE(transport_in_impl->qname, env);
+        transport_in_impl->qname = NULL;
+    }
+    transport_in_impl->qname = qname;
+    return AXIS2_SUCCESS;
+}
+
+struct axis2_flow *AXIS2_CALL
+axis2_transport_in_desc_get_inflow(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env) 
+{
+    AXIS2_FUNC_PARAM_CHECK(transport_in, env, NULL);
+    return AXIS2_INTF_TO_IMPL(transport_in)->inflow;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_transport_in_desc_set_inflow(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env,
+                                        struct axis2_flow *inflow) 
+{
+    axis2_transport_in_desc_impl_t *transport_in_impl = NULL;
+    AXIS2_FUNC_PARAM_CHECK(transport_in, env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, inflow, AXIS2_FAILURE);
+    transport_in_impl = AXIS2_INTF_TO_IMPL(transport_in);
+    if(transport_in_impl->inflow)
+    {
+        AXIS2_FLOW_FREE(transport_in_impl->inflow, env);
+        transport_in_impl->inflow = NULL;
+    }
+    transport_in_impl->inflow = inflow;
+    return AXIS2_SUCCESS;
+}
+
+struct axis2_flow *AXIS2_CALL
+axis2_transport_in_desc_get_faultflow(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env) 
+{
+    return AXIS2_INTF_TO_IMPL(transport_in)->faultflow;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_transport_in_desc_set_faultflow(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env,
+                                        struct axis2_flow *faultflow) 
+{
+    axis2_transport_in_desc_impl_t *transport_in_impl = AXIS2_INTF_TO_IMPL(transport_in);
+    AXIS2_FUNC_PARAM_CHECK(transport_in, env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, faultflow, AXIS2_FAILURE);
+    
+    if(transport_in_impl->faultflow)
+    {
+        AXIS2_PHASE_FREE(transport_in_impl->faultflow, env);
+        transport_in_impl->faultflow = NULL;
+    }
+    transport_in_impl->faultflow = faultflow;
+    return AXIS2_SUCCESS;
+}
+
+struct axis2_transport_listener * AXIS2_CALL
+axis2_transport_in_desc_get_recv(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env) 
+{
+    AXIS2_FUNC_PARAM_CHECK(transport_in, env, NULL);
+    return AXIS2_INTF_TO_IMPL(transport_in)->recv;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_transport_in_desc_set_recv(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env,
+                                        struct axis2_transport_listener *recv) 
+{
+    axis2_transport_in_desc_impl_t *transport_in_impl = AXIS2_INTF_TO_IMPL(transport_in);
+    AXIS2_FUNC_PARAM_CHECK(transport_in, env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, recv, AXIS2_FAILURE);
+    
+    if(transport_in_impl->recv)
+    {
+        AXIS2_TRANSPORT_LISTENER_FREE(transport_in_impl->recv, env);
+        transport_in_impl->recv = NULL;
+    }
+    transport_in_impl->recv = recv;
+    return AXIS2_SUCCESS;
+}
+
+struct axis2_phase * AXIS2_CALL
+axis2_transport_desc_get_inphase(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env) 
+{
+    AXIS2_FUNC_PARAM_CHECK(transport_in, env, NULL);
+    
+    return AXIS2_INTF_TO_IMPL(transport_in)->inphase;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_transport_in_desc_set_inphase(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env,
+                                        struct axis2_phase *inphase) 
+{
+    axis2_transport_in_desc_impl_t *transport_in_impl = AXIS2_INTF_TO_IMPL(transport_in);
+    
+    AXIS2_FUNC_PARAM_CHECK(transport_in, env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, inphase, AXIS2_FAILURE);
+    
+    if(transport_in_impl->inphase)
+    {
+        AXIS2_PHASE_FREE(transport_in_impl->inphase, env);
+        transport_in_impl->inphase = NULL;
+    }
+    
+    transport_in_impl->inphase = inphase;
+    return AXIS2_SUCCESS;
+}
+
+struct axis2_phase *AXIS2_CALL
+axis2_transport_in_desc_get_faultphase(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env) 
+{
+    AXIS2_FUNC_PARAM_CHECK(transport_in, env, NULL);
+    
+    return AXIS2_INTF_TO_IMPL(transport_in)->faultphase;
+}
+
+axis2_status_t AXIS2_CALL
+axis2_transport_in_desc_set_faultphase(struct axis2_transport_in_desc *transport_in,
+                                        axis2_env_t **env,
+                                        struct axis2_phase *faultphase) 
+{
+    axis2_transport_in_desc_impl_t *transport_in_impl = AXIS2_INTF_TO_IMPL(transport_in);
+    AXIS2_FUNC_PARAM_CHECK(transport_in, env, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK((*env)->error, faultphase, AXIS2_FAILURE);
+    
+    if(transport_in_impl->faultphase)
+    {
+        AXIS2_PHASE_FREE(transport_in_impl->faultphase, env);
+        transport_in_impl->faultphase = NULL;
+    }
+    
+    transport_in_impl->faultphase = faultphase;
+    return AXIS2_SUCCESS;
+    
+}

Added: webservices/axis2/trunk/c/modules/core/description/src/transport_out_desc.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/src/transport_out_desc.c?rev=348630&view=auto
==============================================================================
    (empty)

Added: webservices/axis2/trunk/c/modules/core/transport/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/Makefile.am?rev=348630&view=auto
==============================================================================
    (empty)

Added: webservices/axis2/trunk/c/modules/core/transport/Makefile.in
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/Makefile.in?rev=348630&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/Makefile.in (added)
+++ webservices/axis2/trunk/c/modules/core/transport/Makefile.in Wed Nov 23 19:44:18 2005
@@ -0,0 +1,323 @@
+# Makefile.in generated by automake 1.9.5 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005  Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = ../../..
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = @INSTALL@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+target_triplet = @target@
+subdir = modules/core/transport
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
+	$(top_srcdir)/conftools/libtool.m4 \
+	$(top_srcdir)/conftools/ac_c_bigendian_cross.m4 \
+	$(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+	$(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/axis2_config.h
+CONFIG_CLEAN_FILES =
+SOURCES =
+DIST_SOURCES =
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+COND_CORE_FALSE = @COND_CORE_FALSE@
+COND_CORE_TRUE = @COND_CORE_TRUE@
+COND_TEST_FALSE = @COND_TEST_FALSE@
+COND_TEST_TRUE = @COND_TEST_TRUE@
+COND_XML_FALSE = @COND_XML_FALSE@
+COND_XML_TRUE = @COND_XML_TRUE@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PULL_PARSER = @PULL_PARSER@
+RANLIB = @RANLIB@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+VERSION = @VERSION@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_F77 = @ac_ct_F77@
+ac_ct_RANLIB = @ac_ct_RANLIB@
+ac_ct_STRIP = @ac_ct_STRIP@
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+datadir = @datadir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target = @target@
+target_alias = @target_alias@
+target_cpu = @target_cpu@
+target_os = @target_os@
+target_vendor = @target_vendor@
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+	@for dep in $?; do \
+	  case '$(am__configure_deps)' in \
+	    *$$dep*) \
+	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
+		&& exit 0; \
+	      exit 1;; \
+	  esac; \
+	done; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  modules/core/transport/Makefile'; \
+	cd $(top_srcdir) && \
+	  $(AUTOMAKE) --gnu  modules/core/transport/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+	@case '$?' in \
+	  *config.status*) \
+	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+	  *) \
+	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+	esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+mostlyclean-libtool:
+	-rm -f *.lo
+
+clean-libtool:
+	-rm -rf .libs _libs
+
+distclean-libtool:
+	-rm -f libtool
+uninstall-info-am:
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+	list='$(DISTFILES)'; for file in $$list; do \
+	  case $$file in \
+	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+	  esac; \
+	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+	    dir="/$$dir"; \
+	    $(mkdir_p) "$(distdir)$$dir"; \
+	  else \
+	    dir=''; \
+	  fi; \
+	  if test -d $$d/$$file; then \
+	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+	    fi; \
+	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+	  else \
+	    test -f $(distdir)/$$file \
+	    || cp -p $$d/$$file $(distdir)/$$file \
+	    || exit 1; \
+	  fi; \
+	done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+	  `test -z '$(STRIP)' || \
+	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+	@echo "This command is intended for maintainers to use"
+	@echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+	-rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-libtool
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-exec-am:
+
+install-info: install-info-am
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+	-rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-info-am
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+	distclean distclean-generic distclean-libtool distdir dvi \
+	dvi-am html html-am info info-am install install-am \
+	install-data install-data-am install-exec install-exec-am \
+	install-info install-info-am install-man install-strip \
+	installcheck installcheck-am installdirs maintainer-clean \
+	maintainer-clean-generic mostlyclean mostlyclean-generic \
+	mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
+	uninstall-info-am
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:

Modified: webservices/axis2/trunk/c/modules/core/transport/axis2_transport_listener.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/axis2_transport_listener.h?rev=348630&r1=348629&r2=348630&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/axis2_transport_listener.h (original)
+++ webservices/axis2/trunk/c/modules/core/transport/axis2_transport_listener.h Wed Nov 23 19:44:18 2005
@@ -0,0 +1,104 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AXIS2_TRANSPORT_LISTENER_H
+#define AXIS2_TRANSPORT_LISTENER_H
+
+/**
+ * @file axis2_transport_listener.h
+ * @brief Axis2 description transport listener interface
+ */
+
+#include <axis2.h>
+#include <axis2_error.h>
+#include <axis2_defines.h>
+#include <axis2_env.h>
+#include <axis2_allocator.h>
+/*#include <axis2_endpoint_ref.h>*/
+#include <axis2_engine_config.h>
+
+#include <wsdl.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+struct axis2_transport_listener;
+typedef struct axis2_transport_listener axis2_transport_listener_t;
+typedef struct axis2_transport_listener_ops axis2_transport_listener_ops_t;
+
+/** @defgroup axis2_transport_listener Transport Listener
+ * @ingroup axis2_description
+ * @{
+ */
+
+/** 
+ * @brief Description Transport Listener operations struct
+ * Encapsulator struct for operations of axis2_transport_listener
+ */
+AXIS2_DECLARE_DATA struct axis2_transport_listener_ops
+{
+	/** De-allocate memory
+  	 * @return status code
+  	 */
+	axis2_status_t (AXIS2_CALL *free)(
+                    axis2_transport_listener_t *transport_listener,
+			        axis2_env_t **env);
+    
+
+};
+
+/** 
+ * @brief Transport Listener struct  
+ */  
+AXIS2_DECLARE_DATA struct axis2_transport_listener
+{
+	axis2_transport_listener_ops_t *ops;
+};
+
+/**
+ * Creates phase holder struct
+ * @return pointer to newly created transport listener
+ */
+AXIS2_DECLARE(axis2_transport_listener_t *) 
+axis2_transport_listener_create (axis2_env_t **env);
+
+/*************************** Function macros **********************************/
+
+#define AXIS2_TRANSPORT_LISTENER_FREE(transport_listener, env) \
+		((transport_listener->ops)->free (transport_listener, env))
+
+#define AXIS2_TRANSPORT_LISTENER_INIT(transport_listener, env, axisconf, transport_in) \
+		((transport_listener->ops)->init (transport_listener, env, axisconf, transport_in))
+
+#define AXIS2_TRANSPORT_LISTENER_START(transport_listener, env, handler) \
+		((transport_listener->ops)->start (transport_listener, env, handler))
+
+#define AXIS2_TRANSPORT_LISTENER_STOP(transport_listener, env, phase_name) \
+		((transport_listener->ops)->stop (transport_listener, env, phase_name))
+
+#define AXIS2_TRANSPORT_LISTENER_REPLY_TO_EPR(transport_listener, env, svc_name) \
+		((transport_listener->ops)->reply_to_epr (transport_listener, env, svc_name))       
+
+/*************************** End of function macros ***************************/
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+#endif  /* AXIS2_TRANSPORT_LISTENER_H */