reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
ServerPublication.hxx
Go to the documentation of this file.
1#if !defined(RESIP_SERVERPUBLICATION_HXX)
2#define RESIP_SERVERPUBLICATION_HXX
3
7
8#include <memory>
9
10namespace resip
11{
12
14{
15 public:
18
19 const Data& getEtag() const;
20 const Data& getDocumentKey() const;
21 const Data& getEventType() const {return(mEventType);}
22
23 std::shared_ptr<SipMessage> accept(int statusCode = 200);
24 std::shared_ptr<SipMessage> reject(int responseCode);
25
26 virtual void end();
27
28 virtual void dispatch(const SipMessage& msg);
29 virtual void dispatch(const DumTimeout& timer);
30
31 void send(std::shared_ptr<SipMessage> response);
32
33 Data getPublisher() const; // aor of From
34 virtual EncodeStream& dump(EncodeStream& strm) const;
35
36 protected:
37 virtual ~ServerPublication();
39
40 private:
41 friend class DialogUsageManager;
43 SipMessage mLastRequest;
44 std::shared_ptr<SipMessage> mLastResponse;
45 const Data mEtag;
46 const Data mEventType;
47 const Data mDocumentKey;
49 unsigned int mTimerSeq;
50 uint32_t mExpires;
51};
52
53}
54
55#endif
56
57/* ====================================================================
58 * The Vovida Software License, Version 1.0
59 *
60 * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
61 *
62 * Redistribution and use in source and binary forms, with or without
63 * modification, are permitted provided that the following conditions
64 * are met:
65 *
66 * 1. Redistributions of source code must retain the above copyright
67 * notice, this list of conditions and the following disclaimer.
68 *
69 * 2. Redistributions in binary form must reproduce the above copyright
70 * notice, this list of conditions and the following disclaimer in
71 * the documentation and/or other materials provided with the
72
73 * distribution.
74 *
75 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
76 * and "Vovida Open Communication Application Library (VOCAL)" must
77 * not be used to endorse or promote products derived from this
78 * software without prior written permission. For written
79 * permission, please contact vocal@vovida.org.
80 *
81 * 4. Products derived from this software may not be called "VOCAL", nor
82 * may "VOCAL" appear in their name, without prior written
83 * permission of Vovida Networks, Inc.
84 *
85 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
86 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
87 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
88 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
89 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
90 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
91 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
92 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
93 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
94 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
95 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
96 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
97 * DAMAGE.
98 *
99 * ====================================================================
100 *
101 * This software consists of voluntary contributions made by Vovida
102 * Networks, Inc. and many individuals on behalf of Vovida Networks,
103 * Inc. For more information on Vovida Networks, Inc., please see
104 * <http://www.vovida.org/>.
105 *
106 */
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
std::shared_ptr< SipMessage > accept(int statusCode=200)
std::shared_ptr< SipMessage > reject(int responseCode)
virtual EncodeStream & dump(EncodeStream &strm) const
virtual void dispatch(const SipMessage &msg)
const Data & getEventType() const
const Data & getEtag() const
void send(std::shared_ptr< SipMessage > response)
Handle< ServerPublication > ServerPublicationHandle
ServerPublicationHandle getHandle()
const Data & getDocumentKey() const
Represents a SIP message.
dcm! – add UnusedChecking(_enum) below;
unsigned int uint32_t
Definition Stun.hxx:34
#define EncodeStream
void list()
Definition userAdmin.cxx:66