|
reSIProcate/DialogUsageManager
9680
|
00001 #include "resip/dum/HttpGetMessage.hxx" 00002 #include "rutil/WinLeakCheck.hxx" 00003 00004 using namespace resip; 00005 00006 00007 HttpGetMessage::HttpGetMessage(const Data& tid, 00008 bool success, 00009 const Data& body, 00010 const Mime& type) : 00011 DumFeatureMessage(tid), 00012 mSuccess(success), 00013 mBody(body), 00014 mType(type) 00015 { 00016 } 00017 00018 EncodeStream& 00019 HttpGetMessage::encodeBrief(EncodeStream& str) const 00020 { 00021 return str << "HttpGetMessage: " << getTransactionId() << " " << mType; 00022 } 00023 00024 EncodeStream& 00025 HttpGetMessage::encode(EncodeStream& strm) const 00026 { 00027 return strm << brief() << "body: " << mBody; 00028 } 00029 00030 Message* 00031 HttpGetMessage::clone() const 00032 { 00033 return new HttpGetMessage(getTransactionId(), mSuccess, mBody, mType); 00034 } 00035 00036 /* ==================================================================== 00037 * The Vovida Software License, Version 1.0 00038 * 00039 * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved. 00040 * 00041 * Redistribution and use in source and binary forms, with or without 00042 * modification, are permitted provided that the following conditions 00043 * are met: 00044 * 00045 * 1. Redistributions of source code must retain the above copyright 00046 * notice, this list of conditions and the following disclaimer. 00047 * 00048 * 2. Redistributions in binary form must reproduce the above copyright 00049 * notice, this list of conditions and the following disclaimer in 00050 * the documentation and/or other materials provided with the 00051 * distribution. 00052 * 00053 * 3. The names "VOCAL", "Vovida Open Communication Application Library", 00054 * and "Vovida Open Communication Application Library (VOCAL)" must 00055 * not be used to endorse or promote products derived from this 00056 * software without prior written permission. For written 00057 * permission, please contact vocal@vovida.org. 00058 * 00059 * 4. Products derived from this software may not be called "VOCAL", nor 00060 * may "VOCAL" appear in their name, without prior written 00061 * permission of Vovida Networks, Inc. 00062 * 00063 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED 00064 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 00065 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND 00066 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA 00067 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES 00068 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL, 00069 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00070 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 00071 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 00072 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00073 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 00074 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 00075 * DAMAGE. 00076 * 00077 * ==================================================================== 00078 * 00079 * This software consists of voluntary contributions made by Vovida 00080 * Networks, Inc. and many individuals on behalf of Vovida Networks, 00081 * Inc. For more information on Vovida Networks, Inc., please see 00082 * <http://www.vovida.org/>. 00083 * 00084 */
1.7.5.1