axis2_http_request_line.h

Go to the documentation of this file.
00001 /*
00002 * Copyright 2004,2005 The Apache Software Foundation.
00003 *
00004 * Licensed under the Apache License, Version 2.0 (the "License");
00005 * you may not use this file except in compliance with the License.
00006 * You may obtain a copy of 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,
00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013 * See the License for the specific language governing permissions and
00014 * limitations under the License.
00015 */
00016 
00017 #ifndef AXIS2_HTTP_REQUEST_LINE_H
00018 #define AXIS2_HTTP_REQUEST_LINE_H
00019 
00031 #include <axis2_const.h>
00032 #include <axis2_defines.h>
00033 #include <axis2_env.h>
00034 
00035 
00036 #ifdef __cplusplus
00037 extern "C"
00038 {
00039 #endif
00040 
00042     typedef struct axis2_http_request_line_ops axis2_http_request_line_ops_t;
00044     typedef struct axis2_http_request_line axis2_http_request_line_t;
00045 
00046 
00051     struct axis2_http_request_line_ops
00052     {
00057         axis2_char_t *(AXIS2_CALL *
00058                 get_method)(
00059                     const axis2_http_request_line_t *request_line,
00060                     const axis2_env_t *env);
00061 
00066         axis2_char_t *(AXIS2_CALL *
00067                 get_http_version)(
00068                     const axis2_http_request_line_t *request_line,
00069                     const axis2_env_t *env);
00070 
00075         axis2_char_t *(AXIS2_CALL *
00076                 get_uri)(
00077                     const axis2_http_request_line_t *request_line,
00078                     const axis2_env_t *env);
00079 
00084         axis2_char_t *(AXIS2_CALL *
00085                 to_string)(
00086                     axis2_http_request_line_t *request_line,
00087                     const axis2_env_t *env);
00088 
00094         axis2_status_t (AXIS2_CALL *
00095                 free)(
00096                     axis2_http_request_line_t *request_line,
00097                     const axis2_env_t *env);
00098     };
00099 
00104     struct axis2_http_request_line
00105     {
00106         axis2_http_request_line_ops_t *ops;
00107     };
00108 
00115     AXIS2_EXTERN axis2_http_request_line_t *AXIS2_CALL
00116     axis2_http_request_line_create(
00117         const axis2_env_t *env,
00118         const axis2_char_t *method,
00119         const axis2_char_t *uri,
00120         const axis2_char_t *http_version);
00121 
00126     AXIS2_EXTERN axis2_http_request_line_t *AXIS2_CALL
00127     axis2_http_request_line_parse_line(
00128         const axis2_env_t *env,
00129         const axis2_char_t *str);
00130 
00131 /********************* Start of function macros   ***************************/
00132 
00135 #define AXIS2_HTTP_REQUEST_LINE_GET_METHOD(request_line, env) \
00136                         ((request_line)->ops->get_method (request_line, env))
00137 
00140 #define AXIS2_HTTP_REQUEST_LINE_GET_HTTP_VERSION(request_line, env) \
00141                         ((request_line)->ops->get_http_version(request_line, env))
00142 
00145 #define AXIS2_HTTP_REQUEST_LINE_GET_URI(request_line, env) \
00146                         ((request_line)->ops->get_uri (request_line, env))
00147 
00150 #define AXIS2_HTTP_REQUEST_LINE_TO_STRING(request_line, env) \
00151                         ((request_line)->ops->to_string (request_line, env))
00152 
00155 #define AXIS2_HTTP_REQUEST_LINE_FREE(request_line, env) \
00156                         ((request_line)->ops->free(request_line, env))
00157 
00158 /************************* End of function macros *****************************/
00159 
00161 #ifdef __cplusplus
00162 }
00163 #endif
00164 #endif /* AXIS2_HTTP_REQUEST_LINE_H */

Generated on Thu Aug 31 17:32:36 2006 for Axis2/C by  doxygen 1.4.6