reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
MessageSilo.hxx
Go to the documentation of this file.
1#if !defined(RESIP_MESSAGESILO_REQUEST_PROCESSOR_HXX)
2#define RESIP_MESSAGESILO_REQUEST_PROCESSOR_HXX
3
4#include <regex>
5
8#include "repro/Registrar.hxx"
9
10namespace repro
11{
12
14 public RegistrarHandler
15{
16public:
18 virtual ~MessageSilo();
19
21 virtual bool asyncProcess(AsyncProcessorMessage* msg);
22
23 // Registrar Handlers
24 virtual bool onRefresh(resip::ServerRegistrationHandle, const resip::SipMessage& reg) { return true; }
25 virtual bool onRemove(resip::ServerRegistrationHandle, const resip::SipMessage& reg) { return true; }
28 virtual bool onQuery(resip::ServerRegistrationHandle, const resip::SipMessage& reg) { return true; }
29
30private:
31 SiloStore& mSiloStore;
32 std::regex *mDestFilterRegex;
33 std::regex *mMimeTypeFilterRegex;
34 unsigned long mExpirationTime;
35 bool mAddDateHeader;
36 unsigned long mMaxContentLength;
37 unsigned short mSuccessStatusCode;
38 unsigned short mFilteredMimeTypeStatusCode;
39 unsigned short mFailureStatusCode;
40 time_t mLastSiloCleanupTime;
41};
42
43}
44#endif
45
46/* ====================================================================
47 * The Vovida Software License, Version 1.0
48 *
49 * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
50 *
51 * Redistribution and use in source and binary forms, with or without
52 * modification, are permitted provided that the following conditions
53 * are met:
54 *
55 * 1. Redistributions of source code must retain the above copyright
56 * notice, this list of conditions and the following disclaimer.
57 *
58 * 2. Redistributions in binary form must reproduce the above copyright
59 * notice, this list of conditions and the following disclaimer in
60 * the documentation and/or other materials provided with the
61 * distribution.
62 *
63 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
64 * and "Vovida Open Communication Application Library (VOCAL)" must
65 * not be used to endorse or promote products derived from this
66 * software without prior written permission. For written
67 * permission, please contact vocal@vovida.org.
68 *
69 * 4. Products derived from this software may not be called "VOCAL", nor
70 * may "VOCAL" appear in their name, without prior written
71 * permission of Vovida Networks, Inc.
72 *
73 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
74 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
75 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
76 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
77 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
78 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
79 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
80 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
81 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
82 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
83 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
84 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
85 * DAMAGE.
86 *
87 * ====================================================================
88 *
89 * This software consists of voluntary contributions made by Vovida
90 * Networks, Inc. and many individuals on behalf of Vovida Networks,
91 * Inc. For more information on Vovida Networks, Inc., please see
92 * <http://www.vovida.org/>.
93 *
94 */
virtual bool onRemoveAll(resip::ServerRegistrationHandle, const resip::SipMessage &reg)
Called when all the contacts are removed using "Contact: *".
virtual bool onQuery(resip::ServerRegistrationHandle, const resip::SipMessage &reg)
Called when a client queries for the list of current registrations.
virtual bool onRemove(resip::ServerRegistrationHandle, const resip::SipMessage &reg)
called when one or more specified contacts is removed
virtual processor_action_t process(RequestContext &)
virtual bool onRefresh(resip::ServerRegistrationHandle, const resip::SipMessage &reg)
Note: These very closely mimic the ServerRegistrationHandler callbacks.
virtual bool onAdd(resip::ServerRegistrationHandle, const resip::SipMessage &reg)
Called when one or more contacts are added.
virtual bool asyncProcess(AsyncProcessorMessage *msg)
A generic thread-bank class.
Represents a SIP message.
This Class is used to implement a primitive form of RPC using loose XML formatting.
void list()
Definition userAdmin.cxx:66