1
#if defined(HAVE_CONFIG_H)
5
#include "ExtensionHeader.hxx"
6
#include "HeaderTypes.hxx"
7
#include "rutil/Logger.hxx"
10
#include "rutil/ParseBuffer.hxx"
12
#define RESIPROCATE_SUBSYSTEM Subsystem::SIP
14
using namespace resip;
16
ExtensionHeader::ExtensionHeader(const char* name)
23
throw Exception("Empty extension header",__FILE__,__LINE__);
25
assert(Headers::getType(mName.data(), (int)mName.size()) == Headers::UNKNOWN);
28
ExtensionHeader::ExtensionHeader(const Data& name)
34
throw Exception("Empty extension header",__FILE__,__LINE__);
36
assert(Headers::getType(mName.data(), (int)mName.size()) == Headers::UNKNOWN);
40
ExtensionHeader::getName() const
45
ExtensionHeader::Exception::Exception(const Data& msg, const Data& file, const int line)
46
: BaseException(msg, file, line)
50
ExtensionHeader::Exception::name() const
52
return "ExtensionHeader::Exception";
55
/* ====================================================================
56
* The Vovida Software License, Version 1.0
58
* Copyright (c) 2005 Vovida Networks, Inc. All rights reserved.
60
* Redistribution and use in source and binary forms, with or without
61
* modification, are permitted provided that the following conditions
64
* 1. Redistributions of source code must retain the above copyright
65
* notice, this list of conditions and the following disclaimer.
67
* 2. Redistributions in binary form must reproduce the above copyright
68
* notice, this list of conditions and the following disclaimer in
69
* the documentation and/or other materials provided with the
72
* 3. The names "VOCAL", "Vovida Open Communication Application Library",
73
* and "Vovida Open Communication Application Library (VOCAL)" must
74
* not be used to endorse or promote products derived from this
75
* software without prior written permission. For written
76
* permission, please contact vocal@vovida.org.
78
* 4. Products derived from this software may not be called "VOCAL", nor
79
* may "VOCAL" appear in their name, without prior written
80
* permission of Vovida Networks, Inc.
82
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
83
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
84
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
85
* NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
86
* NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
87
* IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
88
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
89
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
90
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
91
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
92
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
93
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
96
* ====================================================================
98
* This software consists of voluntary contributions made by Vovida
99
* Networks, Inc. and many individuals on behalf of Vovida Networks,
100
* Inc. For more information on Vovida Networks, Inc., please see
101
* <http://www.vovida.org/>.