Coverage Report

Created: 2024-04-23 06:04

/src/resiprocate/resip/stack/WsCookieContext.hxx
Line
Count
Source (jump to first uncovered line)
1
#ifndef RESIP_WsCookieContext_hxx
2
#define RESIP_WsCookieContext_hxx
3
4
#include "Cookie.hxx"
5
#include "rutil/Data.hxx"
6
#include "Uri.hxx"
7
8
#define RESIP_WS_COOKIE_CONTEXT_VERSION 1
9
10
namespace resip
11
{
12
13
class WsCookieContext
14
{
15
   public:
16
      WsCookieContext();
17
      WsCookieContext(const CookieList& cookieList, const Data& infoCookieName, const Data& extraCookieName, const Data& macCookieName, const Uri& requestUri);
18
      WsCookieContext(const WsCookieContext& rhs);
19
      ~WsCookieContext();
20
21
      WsCookieContext& operator=(const WsCookieContext& rhs);
22
23
0
      Data getWsSessionInfo() const { return mWsSessionInfo; };
24
0
      Data getWsSessionExtra() const { return mWsSessionExtra; };
25
0
      Data getWsSessionMAC() const { return mWsSessionMAC; };
26
0
      Uri getWsFromUri() const { return mWsFromUri; };
27
0
      Uri getWsDestUri() const { return mWsDestUri; };
28
0
      time_t getExpiresTime() const { return mExpiresTime; };
29
30
   private:
31
      Data mWsSessionInfo;
32
      Data mWsSessionExtra;
33
      Data mWsSessionMAC;
34
      Uri mWsFromUri;
35
      Uri mWsDestUri;
36
      time_t mExpiresTime;
37
};
38
39
}
40
41
#endif
42
43
/* ====================================================================
44
 * BSD License
45
 *
46
 * Copyright (c) 2013 Catalin Constantin Usurelu  All rights reserved.
47
 *
48
 * Redistribution and use in source and binary forms, with or without
49
 * modification, are permitted provided that the following conditions
50
 * are met:
51
 *
52
 * 1. Redistributions of source code must retain the above copyright
53
 *    notice, this list of conditions and the following disclaimer.
54
 *
55
 * 2. Redistributions in binary form must reproduce the above copyright
56
 *    notice, this list of conditions and the following disclaimer in
57
 *    the documentation and/or other materials provided with the
58
 *    distribution.
59
 *
60
 * 3. Neither the name of the author(s) nor the names of any contributors
61
 *    may be used to endorse or promote products derived from this software
62
 *    without specific prior written permission.
63
 *
64
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTORS "AS IS" AND
65
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
66
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
67
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTORS BE LIABLE
68
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
69
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
70
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
71
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
72
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
73
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
74
 * SUCH DAMAGE.
75
 *
76
 * ====================================================================
77
 *
78
 */