axutil_stomp_frame.h

00001 #ifndef AXIS2_STOMP_FRAME_H
00002 #define AXIS2_STOMP_FRAME_H
00003 
00004 #include <axutil_network_handler.h>
00005 #include <axutil_stream.h>
00006 #include <axutil_array_list.h>
00007 #include <axutil_env.h>
00008 #include <axutil_utils.h>
00009 #include <axutil_utils_defines.h>
00010 #include <axutil_string.h>
00011 
00012 
00013 #ifdef __cplusplus
00014 extern "C" {
00015 #endif /* __cplusplus */
00016 
00017 
00018 #define AXIS2_STOMP_CONNECT "CONNECT"
00019 #define AXIS2_STOMP_SUBSCRIBE "SUBSCRIBE"
00020 #define AXIS2_STOMP_UNSUBSCRIBE "UNSUBSCRIBE"
00021 #define AXIS2_STOMP_SEND "SEND"
00022 #define AXIS2_STOMP_DISCONNECT "DISCONNECT"
00023 #define AXIS2_STOMP_ACK "ACK"
00024 #define AXIS2_STOMP_ABORT "ABORT"
00025 #define AXIS2_STOMP_COMMIT "COMMIT"
00026     
00027     typedef struct axutil_stomp_frame 
00028     {
00029         axis2_char_t *command;
00030         axutil_array_list_t *headers;
00031         axis2_char_t *body;
00032     }axutil_stomp_frame_t;
00033     
00034     axutil_stomp_frame_t *
00035     axutil_stomp_frame_create (
00036         const axutil_env_t *env);
00037 
00038     void
00039     axutil_stomp_fram_free (
00040         axutil_stomp_frame_t *frame,
00041         const axutil_env_t *env);
00042 
00043     
00044     axis2_status_t
00045     axutil_stomp_frame_set_command (
00046         axutil_stomp_frame_t *frame,
00047         const axutil_env_t *env,
00048         axis2_char_t *command);
00049     
00050     
00051     axis2_status_t
00052     axutil_stomp_frame_set_header (
00053         axutil_stomp_frame_t *frame,
00054         const axutil_env_t *env,
00055         axis2_char_t *header,
00056         axis2_char_t *value);
00057     
00058     
00059     axis2_status_t 
00060     axutil_stomp_frame_set_body (
00061         axutil_stomp_frame_t *frame,
00062         const axutil_env_t *env,
00063         axis2_char_t *body);
00064 
00065     int
00066     axutil_stomp_frame_write (
00067         axutil_stomp_frame_t *frame,
00068         const axutil_env_t *env,
00069         axutil_stream_t *stream);
00070 
00071     axutil_stomp_frame_t *
00072     axutil_stomp_frame_read (
00073         const axutil_env_t *env,
00074         axutil_stream_t *stream);
00075 
00076 
00077 
00078 #ifdef __cplusplus
00079 }
00080 #endif
00081 
00082 #endif  /* AXIS2_STOMP_FRAME_H */
00083 
00084 
00085 
00086 
00087 

Generated on Wed Oct 3 11:54:26 2007 for Axis2/C by  doxygen 1.5.1