reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
WebAdmin.hxx
Go to the documentation of this file.
1#if !defined(MOHPARKSERVER_WEBADMIN_HXX)
2#define MOHPARKSERVER_WEBADMIN_HXX
3
4#include <rutil/Data.hxx>
7
8#include "HttpBase.hxx"
9
10#include <map>
11
12namespace resip
13{
14class DataStream;
15}
16
17
18namespace mohparkserver
19{
20
21class Server;
22typedef std::map<resip::Data, resip::Data> Dictionary;
23
24class WebAdmin: public HttpBase
25{
26 public:
27 WebAdmin( Server& server,
28 bool noWebChallenges,
29 const resip::Data& realm,
31 int port=5082,
33
34 protected:
35 virtual void buildPage( const resip::Data& uri,
36 int pageNumber,
37 const resip::Data& user,
38 const resip::Data& password);
39
40 private:
41 resip::Data buildDefaultPage();
42 resip::Data buildUserPage();
43
44 void buildPageOutlinePre(resip::DataStream& s);
45 void buildPageOutlinePost(resip::DataStream& s);
46
47 void buildActiveCallsSubPage(resip::DataStream& s);
48
49 bool mNoWebChallenges;
50
51 Dictionary mHttpParams;
52
53 // list of the keys of records that should be deleted
54 class RemoveKey
55 {
56 public:
57 RemoveKey(const resip::Data &key1, const resip::Data &key2);
58 bool operator<(const RemoveKey& rhs) const;
59 resip::Data mKey1;
60 resip::Data mKey2;
61 };
62 std::set<RemoveKey> mRemoveSet;
63 Server& mServer;
64};
65
66
67
68}
69
70#endif
71
72/* ====================================================================
73 * The Vovida Software License, Version 1.0
74 *
75 * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
76 *
77 * Redistribution and use in source and binary forms, with or without
78 * modification, are permitted provided that the following conditions
79 * are met:
80 *
81 * 1. Redistributions of source code must retain the above copyright
82 * notice, this list of conditions and the following disclaimer.
83 *
84 * 2. Redistributions in binary form must reproduce the above copyright
85 * notice, this list of conditions and the following disclaimer in
86 * the documentation and/or other materials provided with the
87 * distribution.
88 *
89 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
90 * and "Vovida Open Communication Application Library (VOCAL)" must
91 * not be used to endorse or promote products derived from this
92 * software without prior written permission. For written
93 * permission, please contact vocal@vovida.org.
94 *
95 * 4. Products derived from this software may not be called "VOCAL", nor
96 * may "VOCAL" appear in their name, without prior written
97 * permission of Vovida Networks, Inc.
98 *
99 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
100 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
101 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
102 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
103 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
104 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
105 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
106 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
107 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
108 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
109 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
110 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
111 * DAMAGE.
112 *
113 * ====================================================================
114 *
115 * This software consists of voluntary contributions made by Vovida
116 * Networks, Inc. and many individuals on behalf of Vovida Networks,
117 * Inc. For more information on Vovida Networks, Inc., please see
118 * <http://www.vovida.org/>.
119 *
120 */
virtual void buildPage(const resip::Data &uri, int pageNumber, const resip::Data &user, const resip::Data &password)
Definition WebAdmin.cxx:65
An iostream that operates on an existing Data.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
std::map< resip::Data, resip::Data > Dictionary
Definition WebAdmin.hxx:22
dcm! – add UnusedChecking(_enum) below;
IpVersion
An enumeration of IP versions.
void list()
Definition userAdmin.cxx:66