Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / ACE / apps / JAWS2 / HTTP_10.h
blobecd6996d6f2c2bda25cab247ce79780b9f8a41ee
1 /* -*- c++ -*- */
2 #ifndef JAWS_HTTP_10_H
3 #define JAWS_HTTP_10_H
5 #include "ace/RB_Tree.h"
7 #if !defined (ACE_LACKS_PRAGMA_ONCE)
8 # pragma once
9 #endif /* ACE_LACKS_PRAGMA_ONCE */
11 #include "JAWS/Pipeline_Tasks.h"
13 // Forward declaration
14 class JAWS_HTTP_10_Request;
16 // Reading the initial request
18 class JAWS_HTTP_10_Read_Task : public JAWS_Pipeline_Handler
20 public:
21 JAWS_HTTP_10_Read_Task (void);
22 virtual ~JAWS_HTTP_10_Read_Task (void);
24 virtual int handle_put (JAWS_Data_Block *data, ACE_Time_Value *tv);
26 private:
29 // Parsing the request
31 class JAWS_HTTP_10_Parse_Task : public JAWS_Pipeline_Handler
33 public:
34 JAWS_HTTP_10_Parse_Task (void);
35 virtual ~JAWS_HTTP_10_Parse_Task (void);
37 virtual int handle_put (JAWS_Data_Block *data, ACE_Time_Value *tv);
41 // Write the response
43 class JAWS_HTTP_10_Write_Task : public JAWS_Pipeline_Handler
45 public:
46 JAWS_HTTP_10_Write_Task (void);
47 virtual ~JAWS_HTTP_10_Write_Task (void);
49 virtual int handle_put (JAWS_Data_Block *data, ACE_Time_Value *tv);
51 private:
54 // Helpers
56 class JAWS_HTTP_10_Helper
57 // Static functions to enhance the lives of HTTP programmers everywhere.
59 public:
61 static char *HTTP_decode_string (char *path);
62 // Decode '%' escape codes in a URI
66 #endif /* !defined (JAWS_HTTP_10_H) */