1 kumpf 1.9 //%/////////////////////////////////////////////////////////////////////////////
|
2 mike 1.2 //
|
3 kumpf 1.9 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
|
4 mike 1.2 // The Open Group, Tivoli Systems
5 //
6 // Permission is hereby granted, free of charge, to any person obtaining a copy
|
7 kumpf 1.9 // of this software and associated documentation files (the "Software"), to
8 // deal in the Software without restriction, including without limitation the
9 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
10 mike 1.2 // sell copies of the Software, and to permit persons to whom the Software is
11 // furnished to do so, subject to the following conditions:
12 //
|
13 kumpf 1.9 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
14 mike 1.2 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
15 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
16 kumpf 1.9 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
17 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
19 mike 1.2 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 //
22 //==============================================================================
23 //
24 // Author: Mike Brasher (k.schopmeyer@opengroup.org)
25 //
26 // Modified By:
27 //
28 //%/////////////////////////////////////////////////////////////////////////////
29
30 #ifndef Pegasus_HTTPOptions_h
31 #define Pegasus_HTTPOptions_h
32
33 #include <Pegasus/Common/Config.h>
|
34 kumpf 1.11 #include <Pegasus/Common/Linkage.h>
|
35 mike 1.2
|
36 mday 1.5
|
37 mike 1.2 /*
|
38 mday 1.6 The HTTP Options module processes incoming HTTP Messages OPTIONS Method
39 and generates the appropriate responses.
40 The OPTIONS Header is used by a CIM Client to demand capabilities
41 from the target CIM Server
42 Example of a capabilities response
43 HTTP/1.1 200 OK
44 Opt: http://www.dmtf.org/cim/mapping/http/v1.0 ; ns=77
45 77-CIMProtocolVersion: 1.0
46 77-CIMSupportedFunctionalGroups: basic-read
47 77-CIMBatch
48 77-CIMSupportedQueryLanguages: wql
49 Reference the CIM Operations standard section 4.5 for the exact definition
50 of the OPTIONS response
51 Note that we ignore any entity body for the Option method
|
52 mike 1.2 */
53 /*
|
54 mday 1.6 QUESTION: Do we support HTTP 1.1
|
55 mike 1.2 */
56 #include "HTTPOptions.h"
57
58
59 #include <cstdio>
60 #include <iostream>
|
61 mday 1.5 #include <Pegasus/Common/MessageQueueService.h>
|
62 mike 1.2 #include <Pegasus/Common/HTTPAcceptor.h>
63 #include <Pegasus/Common/FileSystem.h>
64 #include <Pegasus/Common/HTTPConnection.h>
65 #include <Pegasus/Common/HTTPMessage.h>
66
67 PEGASUS_NAMESPACE_BEGIN
68
|
69 mike 1.4 // REVIEW: What is this class used for? What feeds its queue? What queue
70 // REVIEW: does it feed?
|
71 mike 1.3
|
72 mday 1.5 class PEGASUS_COMMON_LINKAGE HTTPOptions : public MessageQueueService
|
73 mike 1.2 {
|
74 mday 1.6 public:
75 typedef MessageQueueService Base;
|
76 mday 1.5
|
77 mday 1.6 /** Constructor. There are no further
78 */
79 HTTPOptions()
80 {
|
81 mday 1.5 #error "this class does not appear to be used" // <<< Sat Feb 9 17:33:07 2002 mdd >>>
|
82 mday 1.6 }
|
83 mday 1.5
|
84 mday 1.6 /** Destructor. */
85 ~HTTPOptions();
86 virtual void handleEnqueue(Message *);
87 virtual void handleEnqueue();
|
88 mike 1.2
|
89 mday 1.6 void handleHTTPMessage(HTTPMessage* httpMessage);
|
90 mike 1.2
|
91 mday 1.6 private:
|
92 mike 1.2
93
94 };
95
96
97 PEGASUS_NAMESPACE_END
98
99 #endif /* Pegasus_HTTPOptions_h */
|