You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2006/01/13 09:23:16 UTC

svn commit: r368634 - in /webservices/axis2/trunk/c/include: axis2_http_server.h axis2_http_svr_thread.h

Author: samisa
Date: Fri Jan 13 00:23:10 2006
New Revision: 368634

URL: http://svn.apache.org/viewcvs?rev=368634&view=rev
Log:
Added headers of the http sever

Added:
    webservices/axis2/trunk/c/include/axis2_http_server.h
    webservices/axis2/trunk/c/include/axis2_http_svr_thread.h

Added: webservices/axis2/trunk/c/include/axis2_http_server.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_http_server.h?rev=368634&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_server.h (added)
+++ webservices/axis2/trunk/c/include/axis2_http_server.h Fri Jan 13 00:23:10 2006
@@ -0,0 +1,106 @@
+/*
+ * 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_HTTP_SERVER_H
+#define AXIS2_HTTP_SERVER_H
+
+
+/**
+  * @file axis2_http_server.h
+  * @brief axis2 HTTP Server implementation
+  */
+  
+#include <axis2.h>
+#include <axis2_defines.h>
+#include <axis2_env.h>
+#include <axis2_conf_ctx.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/**
+ * @ingroup axis2_core_transport_http
+ * @{
+ */
+
+typedef struct axis2_http_server_ops axis2_http_server_ops_t;
+typedef struct axis2_http_server axis2_http_server_t;
+
+    
+/** 
+ * @brief HTTP Server ops struct
+ * Encapsulator struct for ops of axis2_http_server
+ */  
+AXIS2_DECLARE_DATA struct axis2_http_server_ops
+{
+    axis2_status_t (AXIS2_CALL *init)
+						(axis2_http_server_t *server, axis2_env_t **env,
+						axis2_conf_ctx_t *conf_ctx, 
+						axis2_transport_in_desc_t *in_desc);
+	axis2_status_t (AXIS2_CALL *start)
+						(axis2_http_server_t *server, axis2_env_t **env);
+	axis2_status_t (AXIS2_CALL *stop)
+						(axis2_http_server_t *server, axis2_env_t **env);
+    
+	axis2_conf_ctx_t* (AXIS2_CALL *get_conf_ctx) (axis2_http_server_t *server, 
+                    	axis2_env_t **env);
+	
+	axis2_endpoint_ref_t* (AXIS2_CALL *get_reply_to_epr) 
+						(axis2_http_server_t *server, axis2_env_t **env, 
+						axis2_char_t *svc_name);
+	
+    axis2_bool_t (AXIS2_CALL *is_running) (axis2_http_server_t *server, 
+                    	axis2_env_t **env);
+	
+	axis2_status_t (AXIS2_CALL *free) (axis2_http_server_t *server, 
+                    axis2_env_t **env);
+};
+
+/** 
+ * @brief HTTP Server struct
+ *    Axis2 HTTP Server
+ */
+AXIS2_DECLARE_DATA struct axis2_http_server
+{
+    axis2_http_server_ops_t *ops;    
+};
+
+
+AXIS2_DECLARE(axis2_http_server_t *) 
+axis2_http_server_create (axis2_env_t **env, axis2_char_t *repo, int port);
+
+/************************** Start of function macros **************************/
+
+#define AXIS2_HTTP_SERVER_INIT(server, env, conf_ctx, in_desc) \
+                        ((server)->ops->init(server, env, conf_ctx, in_desc))
+#define AXIS2_HTTP_SERVER_START(server, env) ((server)->ops->start(server, env))
+#define AXIS2_HTTP_SERVER_STOP(server, env) ((server)->ops->stop(server, env))
+#define AXIS2_HTTP_SERVER_GET_CONF_CTX(server, env) \
+                        ((server)->ops->get_conf_ctx(server, env))
+#define AXIS2_HTTP_SERVER_GET_REPLY_TO_EPR(server, env, svc_name) \
+                        ((server)->ops->get_reply_to_epr(server, env, svc_name))
+#define AXIS2_HTTP_SERVER_IS_RUNNING(server, env) \
+                                ((server)->ops->is_running(server, env))
+/************************** End of function macros ****************************/    
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+
+#endif                          /* AXIS2_HTTP_SERVER_H */

Added: webservices/axis2/trunk/c/include/axis2_http_svr_thread.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_http_svr_thread.h?rev=368634&view=auto
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_svr_thread.h (added)
+++ webservices/axis2/trunk/c/include/axis2_http_svr_thread.h Fri Jan 13 00:23:10 2006
@@ -0,0 +1,107 @@
+/*
+ * 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_HTTP_SVR_THREAD_H
+#define AXIS2_HTTP_SVR_THREAD_H
+
+
+/**
+  * @file axis2_http_svr_thread.h
+  * @brief axis2 HTTP server listning thread implementation
+  */
+  
+#include <axis2.h>
+#include <axis2_defines.h>
+#include <axis2_env.h>
+#include <axis2_http_worker.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/**
+ * @ingroup axis2_core_transport_http
+ * @{
+ */
+
+typedef struct axis2_http_svr_thread_ops axis2_http_svr_thread_ops_t;
+typedef struct axis2_http_svr_thread axis2_http_svr_thread_t;
+
+    
+/** 
+ * @brief HTTP Server Thread ops struct
+ * Encapsulator struct for ops of axis2_http_svr_thread
+ */  
+AXIS2_DECLARE_DATA struct axis2_http_svr_thread_ops
+{
+    axis2_status_t (AXIS2_CALL *run)
+						(axis2_http_svr_thread_t *svr_thread, 
+						axis2_env_t **env);
+	axis2_status_t (AXIS2_CALL *destroy) 
+						(axis2_http_svr_thread_t *svr_thread, 
+						axis2_env_t **env);
+	int (AXIS2_CALL *get_local_port)
+						(axis2_http_svr_thread_t *svr_thread, 
+						axis2_env_t **env);
+    axis2_bool_t (AXIS2_CALL *is_running) 
+						(axis2_http_svr_thread_t *svr_thread, 
+                    	axis2_env_t **env);
+	axis2_status_t (AXIS2_CALL *set_worker) 
+						(axis2_http_svr_thread_t *svr_thread, 
+                    	axis2_env_t **env, axis2_http_worker_t *worker);
+	axis2_status_t (AXIS2_CALL *free)
+                    (axis2_http_svr_thread_t *svr_thread, 
+                    axis2_env_t **env);
+};
+
+/** 
+ * @brief HTTP Server Thread struct
+ *    Axis2 HTTP Server Thread
+ */
+AXIS2_DECLARE_DATA struct axis2_http_svr_thread
+{
+    axis2_http_svr_thread_ops_t *ops;    
+};
+
+
+AXIS2_DECLARE(axis2_http_svr_thread_t *) 
+axis2_http_svr_thread_create (axis2_env_t **env, int port);
+
+/************************** Start of function macros **************************/
+
+#define AXIS2_HTTP_SVR_THREAD_RUN(svr_thread, env) \
+						((svr_thread)->ops->run(svr_thread, env))
+#define AXIS2_HTTP_SVR_THREAD_DESTROY(svr_thread, env) \
+                        ((svr_thread)->ops->destroy(svr_thread, env))
+#define AXIS2_HTTP_SVR_THREAD_GET_LOCAL_PORT(svr_thread, env) \
+                        ((svr_thread)->ops->get_local_port(svr_thread,\
+						env))
+#define AXIS2_HTTP_SVR_THREAD_IS_RUNNING(svr_thread, env) \
+                        ((svr_thread)->ops->is_running(svr_thread, env))
+#define AXIS2_HTTP_SVR_THREAD_SET_WORKER(svr_thread, env, worker) \
+                        ((svr_thread)->ops->set_worker(svr_thread, env,\
+						worker))
+#define AXIS2_HTTP_SVR_THREAD_FREE(svr_thread, env) \
+                ((svr_thread)->ops->free(svr_thread, env))
+/************************** End of function macros ****************************/    
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+
+#endif                          /* AXIS2_HTTP_SVR_THREAD_H */