Wexus2 0.20
wexus::Cookies Class Reference

#include <Cookies.h>

List of all members.

Classes

class  CookieNotFoundException

Public Member Functions

 Cookies (wexus::HTTPRequest *req, wexus::HTTPReply *rep)
bool contains (const QString &cookieName)
const QVariant & operator[] (const QString &cookieName) const
QVariant & operator[] (const QString &cookieName)

Detailed Description

This is collection of cookies, string values mapped by string keys. Internally, it uses the ClientCookies and ServerCookies of HTTPRequest and HTTPReply.

Author:
Aleksander Demko

Constructor & Destructor Documentation

wexus::Cookies::Cookies ( wexus::HTTPRequest req,
wexus::HTTPReply rep 
)

Constructor TODO future, add Site so the domain/expires/path can be set.

Author:
Aleksander Demko

Member Function Documentation

bool wexus::Cookies::contains ( const QString &  cookieName)

Does this have a cookie with the given name?

Author:
Aleksander Demko
QVariant& wexus::Cookies::operator[] ( const QString &  cookieName)

Gets a cookie. Never fails, as it'll create the cookie if need be.

Author:
Aleksander Demko
const QVariant& wexus::Cookies::operator[] ( const QString &  cookieName) const

Gets a cookie. Throws CookieNotFoundException on not found.

Author:
Aleksander Demko

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Enumerator