(file) Return to HTTPMessage.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

  1 karl  1.20 //%2005////////////////////////////////////////////////////////////////////////
  2 mike  1.2  //
  3 karl  1.18 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
  4            // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
  5            // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
  6 karl  1.14 // IBM Corp.; EMC Corporation, The Open Group.
  7 karl  1.18 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
  8            // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
  9 karl  1.20 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10            // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 mike  1.2  //
 12            // Permission is hereby granted, free of charge, to any person obtaining a copy
 13 kumpf 1.11 // of this software and associated documentation files (the "Software"), to
 14            // deal in the Software without restriction, including without limitation the
 15            // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 16 mike  1.2  // sell copies of the Software, and to permit persons to whom the Software is
 17            // furnished to do so, subject to the following conditions:
 18            // 
 19 kumpf 1.11 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 20 mike  1.2  // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 21            // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 22 kumpf 1.11 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 23            // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 24            // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 25 mike  1.2  // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 26            // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27            //
 28            //==============================================================================
 29            //
 30            // Author: Mike Brasher (mbrasher@bmc.com)
 31            //
 32 kumpf 1.4  // Modified By: Nag Boranna, Hewlett-Packard Company (nagaraja_boranna@hp.com)
 33            //              Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
 34 brian.campbell 1.16 //         Brian G. Campbell, EMC (campbell_brian@emc.com) - PEP140/phase1
 35 se.gupta       1.17 //		   Seema Gupta (gseema@in.ibm.com) for Bug#1096
 36 david.dillard  1.19 //         David Dillard, VERITAS Software Corp.  (david.dillard@veritas.com)
 37 mike           1.2  //
 38                     //%/////////////////////////////////////////////////////////////////////////////
 39                     
 40                     #ifndef Pegasus_HTTPMessage_h
 41                     #define Pegasus_HTTPMessage_h
 42                     
 43                     #include <iostream>
 44                     #include <Pegasus/Common/Config.h>
 45                     #include <Pegasus/Common/MessageQueue.h>
 46                     #include <Pegasus/Common/Pair.h>
 47                     #include <Pegasus/Common/String.h>
 48                     #include <Pegasus/Common/Message.h>
 49 kumpf          1.13 #include <Pegasus/Common/ArrayInternal.h>
 50 mike           1.2  #include <Pegasus/Common/AuthenticationInfo.h>
 51 kumpf          1.12 #include <Pegasus/Common/Linkage.h>
 52 humberto       1.15 #include <Pegasus/Common/AcceptLanguages.h>
 53                     #include <Pegasus/Common/ContentLanguages.h>
 54 mike           1.2  
 55                     PEGASUS_NAMESPACE_BEGIN
 56                     
 57                     typedef Pair<String, String> HTTPHeader;
 58                     
 59                     /** This message is sent from a connection to its output queue when
 60                         a complete HTTP message is received.
 61                     */
 62                     class PEGASUS_COMMON_LINKAGE HTTPMessage : public Message
 63                     {
 64 mday           1.3     public:
 65                       
 66                           typedef Message Base;
 67                           
 68 mike           1.21.2.1       HTTPMessage(const Buffer& message_, Uint32 queueId_ = 0,
 69 brian.campbell 1.16     									const CIMException *cimException_ = 0);
 70 mday           1.3      
 71 se.gupta       1.17           HTTPMessage(const HTTPMessage & msg);
 72 brian.campbell 1.16     
 73 mike           1.21.2.1       Buffer message;
 74 mday           1.3            Uint32 queueId;
 75                               AuthenticationInfo* authInfo;
 76 humberto       1.15           AcceptLanguages acceptLanguages;
 77                               ContentLanguages contentLanguages;
 78                               Boolean acceptLanguagesDecoded;
 79                               Boolean contentLanguagesDecoded;
 80 brian.campbell 1.16     			CIMException cimException;
 81 mday           1.3      
 82                               void parse(
 83                         	 String& startLine,
 84                         	 Array<HTTPHeader>& headers,
 85                         	 Uint32& contentLength) const;
 86                         
 87 joyce.j        1.21           #ifdef PEGASUS_DEBUG
 88                                void printAll(PEGASUS_STD(ostream)& os) const;
 89                               #endif
 90 mday           1.3      
 91 brian.campbell 1.16     		  static void lookupHeaderPrefix(
 92                             Array<HTTPHeader>& headers,
 93                             const String& fieldName,
 94                             String& prefix);
 95                         
 96 mday           1.3            static Boolean lookupHeader(
 97                         	 Array<HTTPHeader>& headers,
 98                         	 const String& fieldName,
 99                         	 String& fieldValue,
100 kumpf          1.8      	 Boolean allowNamespacePrefix = false);
101 mday           1.3      
102                               static Boolean parseRequestLine(
103                         	 const String& startLine,
104                         	 String& methodName,
105                         	 String& requestUri,
106                         	 String& httpVersion);
107 kumpf          1.4      
108                               static Boolean parseStatusLine(
109                         	 const String& statusLine,
110                         	 String& httpVersion,
111                         	 Uint32& statusCode,
112                         	 String& reasonPhrase);
113                         };
114 kumpf          1.5      
115                         PEGASUS_NAMESPACE_END
116 mike           1.2      
117                         #endif /* Pegasus_HTTPMessage_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2