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