BazisLib::Network::HTTP::CCookieManager Class Reference

Stores cookies for HTTP sessions [thread-safe]. More...

#include <http.h>

Collaboration diagram for BazisLib::Network::HTTP::CCookieManager:

Collaboration graph
[legend]

List of all members.

Public Member Functions

bool SetCookie (CHTTPConnectInfo &info, const std::string &cookie)
bool GetCookie (CHTTPConnectInfo &info, std::string &buffer)

Static Protected Member Functions

static bool ParseCookieSet (const std::string &str, CookieSet &cookies)
 Parses standard Set-Cookie field.

Private Types

typedef std::map< std::string,
std::string > 
CookieSet
typedef std::map< std::string,
CookieSet
CookieList
typedef std::map< std::string,
CookieList
CookieDatabase

Private Attributes

CookieDatabase m_CookieDatabase
InProcessMutex m_Mutex


Detailed Description

Stores cookies for HTTP sessions [thread-safe].

This class is used by HTTPClient class to store cookies within a single session (until HTTPClient is deleted).

Remarks:
Note that the cookies are not saved to disk or anywhere else and are reset after HTTPClient deletion

Member Typedef Documentation

typedef std::map<std::string, CookieList> BazisLib::Network::HTTP::CCookieManager::CookieDatabase [private]

typedef std::map<std::string, CookieSet> BazisLib::Network::HTTP::CCookieManager::CookieList [private]

typedef std::map<std::string, std::string> BazisLib::Network::HTTP::CCookieManager::CookieSet [private]


Member Function Documentation

bool BazisLib::Network::HTTP::CCookieManager::GetCookie ( CHTTPConnectInfo info,
std::string &  buffer 
)

static bool BazisLib::Network::HTTP::CCookieManager::ParseCookieSet ( const std::string &  str,
CookieSet cookies 
) [static, protected]

Parses standard Set-Cookie field.

bool BazisLib::Network::HTTP::CCookieManager::SetCookie ( CHTTPConnectInfo info,
const std::string &  cookie 
)


Member Data Documentation


The documentation for this class was generated from the following file:
SourceForge.net Logo