reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
WsConnectionBase.hxx
Go to the documentation of this file.
1#ifndef RESIP_WsConnectionBase_hxx
2#define RESIP_WsConnectionBase_hxx
3
7
8#include <memory>
9#include <vector>
10
11namespace resip
12{
13
15{
16 public:
17 WsConnectionBase() = default;
18 explicit WsConnectionBase(std::shared_ptr<WsConnectionValidator> mWsConnectionValidator);
21 virtual ~WsConnectionBase() = default;
22
25
26 void setCookies(const CookieList& cookies);
27 const CookieList& getCookies() const noexcept;
28 std::shared_ptr<WsCookieContext> getWsCookieContext() const noexcept;
29 void setWsCookieContext(std::shared_ptr<WsCookieContext> wsCookieContext) noexcept;
30 std::shared_ptr<WsConnectionValidator> connectionValidator() const noexcept;
31
32 private:
33 CookieList mCookies;
34 std::shared_ptr<WsCookieContext> mWsCookieContext;
35 std::shared_ptr<WsConnectionValidator> mWsConnectionValidator;
36};
37
38}
39
40#endif
41
42/* ====================================================================
43 * BSD License
44 *
45 * Copyright (c) 2013 Catalin Constantin Usurelu All rights reserved.
46 *
47 * Redistribution and use in source and binary forms, with or without
48 * modification, are permitted provided that the following conditions
49 * are met:
50 *
51 * 1. Redistributions of source code must retain the above copyright
52 * notice, this list of conditions and the following disclaimer.
53 *
54 * 2. Redistributions in binary form must reproduce the above copyright
55 * notice, this list of conditions and the following disclaimer in
56 * the documentation and/or other materials provided with the
57 * distribution.
58 *
59 * 3. Neither the name of the author(s) nor the names of any contributors
60 * may be used to endorse or promote products derived from this software
61 * without specific prior written permission.
62 *
63 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTORS "AS IS" AND
64 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
65 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
66 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTORS BE LIABLE
67 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
68 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
69 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
70 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
71 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
72 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
73 * SUCH DAMAGE.
74 *
75 * ====================================================================
76 *
77 */
78
std::shared_ptr< WsConnectionValidator > connectionValidator() const noexcept
WsConnectionBase(const WsConnectionBase &)=delete
const CookieList & getCookies() const noexcept
WsConnectionBase(WsConnectionBase &&)=delete
WsConnectionBase & operator=(const WsConnectionBase &)=delete
void setWsCookieContext(std::shared_ptr< WsCookieContext > wsCookieContext) noexcept
virtual ~WsConnectionBase()=default
void setCookies(const CookieList &cookies)
std::shared_ptr< WsCookieContext > getWsCookieContext() const noexcept
WsConnectionBase & operator=(WsConnectionBase &&)=delete
dcm! – add UnusedChecking(_enum) below;
std::vector< Cookie > CookieList
Definition Cookie.hxx:35