sipxtacklib  Version 3.3
SipSubscribeServerEventHandler.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 // Author: Dan Petrie (dpetrie AT SIPez DOT com)
11 
12 #ifndef _SipSubscribeServerEventHandler_h_
13 #define _SipSubscribeServerEventHandler_h_
14 
15 // SYSTEM INCLUDES
16 
17 // APPLICATION INCLUDES
18 
19 #include <os/OsDefs.h>
20 #include <os/OsMutex.h>
21 #include <utl/UtlDefs.h>
22 #include <utl/UtlHashMap.h>
23 
24 
25 // DEFINES
26 // MACROS
27 // EXTERNAL FUNCTIONS
28 // EXTERNAL VARIABLES
29 // CONSTANTS
30 // STRUCTS
31 // FORWARD DECLARATIONS
32 class SipMessage;
33 class UtlString;
35 
36 // TYPEDEFS
37 
39 
47 {
48 /* //////////////////////////// PUBLIC //////////////////////////////////// */
49 public:
50 
51 
52 
53 /* ============================ CREATORS ================================== */
54 
57 
58 
60  virtual
62 
63 
64 /* ============================ MANIPULATORS ============================== */
65 
78  virtual UtlBoolean getKeys(const SipMessage& subscribeRequest,
79  UtlString& resourceId,
80  UtlString& eventTypeKey,
81  UtlString& eventType);
82 
84 
86  virtual UtlBoolean isAuthenticated(const SipMessage& subscribeRequest,
87  const UtlString& resourceId,
88  const UtlString& eventTypeKey,
89  SipMessage& subscribeResponse);
90 
92 
94  virtual UtlBoolean isAuthorized(const SipMessage& subscribeRequest,
95  const UtlString& resourceId,
96  const UtlString& eventTypeKey,
97  SipMessage& subscribeResponse);
98 
100 
103  virtual UtlBoolean getNotifyContent(const UtlString& resourceId,
104  const UtlString& eventTypeKey,
105  const UtlString& eventType,
106  SipPublishContentMgr& contentMgr,
107  const char* allowHeaderValue,
108  SipMessage& notifyRequest);
109 
110 /* ============================ ACCESSORS ================================= */
111 
112 
113 /* ============================ INQUIRY =================================== */
114 
115 
116 /* //////////////////////////// PROTECTED ///////////////////////////////// */
117 protected:
118 
119 /* //////////////////////////// PRIVATE /////////////////////////////////// */
120 private:
122  SipSubscribeServerEventHandler(const SipSubscribeServerEventHandler& rSipSubscribeServerEventHandler);
123 
126 
127 
128 };
129 
130 /* ============================ INLINE METHODS ============================ */
131 
132 #endif // _SipSubscribeServerEventHandler_h_
virtual UtlBoolean getKeys(const SipMessage &subscribeRequest, UtlString &resourceId, UtlString &eventTypeKey, UtlString &eventType)
Determine what the resourceId, eventTypeKey, and eventType should be for this SUBSCRIBE request...
Definition: SipSubscribeServerEventHandler.cpp:89
Specialization of HttpMessage to contain and manipulate SIP messages.
Definition: SipMessage.h:343
virtual ~SipSubscribeServerEventHandler()
Destructor.
Definition: SipSubscribeServerEventHandler.cpp:71
SipSubscribeServerEventHandler()
Default Dialog constructor.
Definition: SipSubscribeServerEventHandler.cpp:59
virtual UtlBoolean isAuthorized(const SipMessage &subscribeRequest, const UtlString &resourceId, const UtlString &eventTypeKey, SipMessage &subscribeResponse)
Determine if the given SUBSCRIBE request is authorized to subscribe.
Definition: SipSubscribeServerEventHandler.cpp:117
Class for managing body content to be accepted via PUBLISH or provided in NOTIFY requests.
Definition: SipPublishContentMgr.h:93
virtual UtlBoolean getNotifyContent(const UtlString &resourceId, const UtlString &eventTypeKey, const UtlString &eventType, SipPublishContentMgr &contentMgr, const char *allowHeaderValue, SipMessage &notifyRequest)
Fill in the event specific content for the identified resource and eventTypeKey.
Definition: SipSubscribeServerEventHandler.cpp:126
virtual UtlBoolean isAuthenticated(const SipMessage &subscribeRequest, const UtlString &resourceId, const UtlString &eventTypeKey, SipMessage &subscribeResponse)
Determine if the given SUBSCRIBE request is authenticated to subscribe.
Definition: SipSubscribeServerEventHandler.cpp:108
Class for specializing the handling of SIP Events in SipSubscribeServer.
Definition: SipSubscribeServerEventHandler.h:46

sipXtackLib home page