/[resiprocate]/main/resip/dum/HttpGetMessage.hxx
ViewVC logotype

Contents of /main/resip/dum/HttpGetMessage.hxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8161 - (show annotations) (download)
Fri Jul 25 20:54:42 2008 UTC (11 years, 3 months ago) by jmatthewsr
File MIME type: text/plain
File size: 3049 byte(s)
Stream performance enhancements for encoding objects.  New encoding code should use 'EncodeStream','resipCerr' and 'resipCout' for encoding any resip objects.  Merge from b-jmatthewsr-streamperf2 -r 8137:8160.  
1 #ifndef RESIP_HttpGetMessage_hxx
2 #define RESIP_HttpGetMessage_hxx
3
4 #include "resip/dum/DumFeatureMessage.hxx"
5 #include "resip/stack/Mime.hxx"
6 #include "rutil/Data.hxx"
7
8 namespace resip
9 {
10
11 class HttpGetMessage : public DumFeatureMessage
12 {
13 public:
14 HttpGetMessage(const Data& tid, bool success, const Data& x509, const Mime& type);
15
16 bool success() const { return mSuccess; }
17 const Data& getBodyData() const { return mBody; }
18 const Mime& getType() const {return mType;}
19
20 virtual Message* clone() const;
21 virtual EncodeStream& encode(EncodeStream& strm) const;
22 virtual EncodeStream& encodeBrief(EncodeStream& strm) const;
23 private:
24 bool mSuccess;
25 Data mBody;
26 Mime mType;
27 };
28
29 }
30
31 #endif
32 /* ====================================================================
33 * The Vovida Software License, Version 1.0
34 *
35 * Redistribution and use in source and binary forms, with or without
36 * modification, are permitted provided that the following conditions
37 * are met:
38 *
39 * 1. Redistributions of source code must retain the above copyright
40 * notice, this list of conditions and the following disclaimer.
41 *
42 * 2. Redistributions in binary form must reproduce the above copyright
43 * notice, this list of conditions and the following disclaimer in
44 * the documentation and/or other materials provided with the
45 * distribution.
46 *
47 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
48 * and "Vovida Open Communication Application Library (VOCAL)" must
49 * not be used to endorse or promote products derived from this
50 * software without prior written permission. For written
51 * permission, please contact vocal@vovida.org.
52 *
53 * 4. Products derived from this software may not be called "VOCAL", nor
54 * may "VOCAL" appear in their name, without prior written
55 * permission of Vovida Networks, Inc.
56 *
57 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
58 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
59 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
60 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
61 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
62 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
63 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
64 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
65 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
66 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
67 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
68 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
69 * DAMAGE.
70 *
71 * ====================================================================
72 *
73 * This software consists of voluntary contributions made by Vovida
74 * Networks, Inc. and many individuals on behalf of Vovida Networks,
75 * Inc. For more information on Vovida Networks, Inc., please see
76 * <http://www.vovida.org/>.
77 *
78 */

Properties

Name Value
svn:eol-style native
svn:mime-type text/plain

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27