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

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

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: 3143 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 #include "resip/dum/HttpGetMessage.hxx"
2 #include "rutil/WinLeakCheck.hxx"
3
4 using namespace resip;
5
6
7 HttpGetMessage::HttpGetMessage(const Data& tid,
8 bool success,
9 const Data& body,
10 const Mime& type) :
11 DumFeatureMessage(tid),
12 mSuccess(success),
13 mBody(body),
14 mType(type)
15 {
16 }
17
18 EncodeStream&
19 HttpGetMessage::encodeBrief(EncodeStream& str) const
20 {
21 return str << "HttpGetMessage: " << getTransactionId() << " " << mType;
22 }
23
24 EncodeStream&
25 HttpGetMessage::encode(EncodeStream& strm) const
26 {
27 return strm << brief() << "body: " << mBody;
28 }
29
30 Message*
31 HttpGetMessage::clone() const
32 {
33 return new HttpGetMessage(getTransactionId(), mSuccess, mBody, mType);
34 }
35
36 /* ====================================================================
37 * The Vovida Software License, Version 1.0
38 *
39 * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
40 *
41 * Redistribution and use in source and binary forms, with or without
42 * modification, are permitted provided that the following conditions
43 * are met:
44 *
45 * 1. Redistributions of source code must retain the above copyright
46 * notice, this list of conditions and the following disclaimer.
47 *
48 * 2. Redistributions in binary form must reproduce the above copyright
49 * notice, this list of conditions and the following disclaimer in
50 * the documentation and/or other materials provided with the
51 * distribution.
52 *
53 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
54 * and "Vovida Open Communication Application Library (VOCAL)" must
55 * not be used to endorse or promote products derived from this
56 * software without prior written permission. For written
57 * permission, please contact vocal@vovida.org.
58 *
59 * 4. Products derived from this software may not be called "VOCAL", nor
60 * may "VOCAL" appear in their name, without prior written
61 * permission of Vovida Networks, Inc.
62 *
63 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
64 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
65 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
66 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
67 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
68 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
69 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
70 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
71 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
72 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
73 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
74 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
75 * DAMAGE.
76 *
77 * ====================================================================
78 *
79 * This software consists of voluntary contributions made by Vovida
80 * Networks, Inc. and many individuals on behalf of Vovida Networks,
81 * Inc. For more information on Vovida Networks, Inc., please see
82 * <http://www.vovida.org/>.
83 *
84 */

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