#include <BTCookie.h>
Public Member Functions | |
| BTCookie () | |
| BTCookie (String &name, String &value, String &, String &) | |
| ~BTCookie () | |
| const String & | name () const |
| Get the cookie name. | |
| const String & | value () const |
| Get the cookie value. | |
| const String & | path () const |
| Get the cookie path. | |
| const String & | domain () const |
| Get the cookie domain. | |
| const double | expireDate () const |
| Get the cookie expire date. | |
| bool | isDomain () const |
| Returns true if cookie is set for all domain. | |
| bool | isSecure () const |
| The cookie is secured only if the transfer was secured (https). | |
| void | initFromString (const String &cookie) |
| Construct the cookie from the values stored in parameter. | |
| String | createBackupStringFromCookie () |
| Creates a backup string from the cookie for it to be saved on a file. | |
| void | initCookieFromBackupString (String cookie, String domain) |
| Initiate the cookie from a backup string. | |
domain and path are stored but not used. expires and secure are unsupported.
| BTCookie::BTCookie | ( | ) | [inline] |
| BTCookie::~BTCookie | ( | ) | [inline] |
| const String& BTCookie::name | ( | ) | const [inline] |
Get the cookie name.
| const String& BTCookie::value | ( | ) | const [inline] |
Get the cookie value.
| const String& BTCookie::path | ( | ) | const [inline] |
Get the cookie path.
| const String& BTCookie::domain | ( | ) | const [inline] |
Get the cookie domain.
| const double BTCookie::expireDate | ( | ) | const [inline] |
Get the cookie expire date.
| bool BTCookie::isDomain | ( | ) | const [inline] |
Returns true if cookie is set for all domain.
| bool BTCookie::isSecure | ( | ) | const [inline] |
The cookie is secured only if the transfer was secured (https).
| void BTCookie::initFromString | ( | const String & | cookie | ) |
Construct the cookie from the values stored in parameter.
| in) | string containing at least name=value |
| String BTCookie::createBackupStringFromCookie | ( | ) |
Creates a backup string from the cookie for it to be saved on a file.
Initiate the cookie from a backup string.