HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NET_NetworkCookie Class Reference

#include <NET_NetworkCookie.h>

Public Types

enum  StringForm { NameAndValueOnly, Full }
 

Public Member Functions

 NET_NetworkCookie ()
 
 NET_NetworkCookie (const UT_StringRef &name, const UT_StringRef &value)
 
 NET_NetworkCookie (const NET_NetworkCookie &cookie)
 
NET_NetworkCookieoperator= (const NET_NetworkCookie &cookie)
 
 NET_NetworkCookie (NET_NetworkCookie &&cookie)
 
NET_NetworkCookieoperator= (NET_NetworkCookie &&cookie)
 
bool operator== (const NET_NetworkCookie &cookie) const
 
bool operator!= (const NET_NetworkCookie &cookie) const
 
bool hasSameIdentifier (const NET_NetworkCookie &cookie) const
 
UT_StringHolder toString (StringForm form=Full) const
 
bool hasMatchingDomain (const NET_NetworkCookie &cookie) const
 
bool hasMatchingDomain (const UT_Url &url) const
 
bool hasMatchingPath (const UT_StringRef &path) const
 
bool hasMatchingPath (const UT_Url &url) const
 
bool hasMatchingPath (const NET_NetworkCookie &cookie) const
 
bool isValid () const
 
bool hasExpired () const
 
void normalize (const UT_Url &url)
 
bool parseCookie (const UT_StringRef &cookie)
 
const UT_StringHoldername () const
 
const UT_StringHolderdomain () const
 
const NET_Timecreation () const
 
const NET_Timeexpiration () const
 
const UT_StringHolderpath () const
 
const UT_StringHoldervalue () const
 
bool isHttpOnly () const
 
bool isSecure () const
 
const NET_TimelastAccess () const
 
bool isPersistent () const
 
void setName (const UT_StringHolder &name)
 
void setDomain (const UT_StringHolder &domain)
 
void setCreation (const NET_Time &t)
 
void setExpiration (const NET_Time &t)
 
bool setExpiration (const UT_StringRef &date)
 
void setPath (const UT_StringHolder &path)
 
void setValue (const UT_StringHolder &value)
 
void setHttpOnly (bool http_only)
 
void setSecure (bool is_secure)
 
void setLastAccess (const NET_Time &t)
 
void setPersistent (bool is_persistent)
 
void dump () const
 

Static Public Member Functions

static void parseCookies (const UT_StringArray &cookie_string, NET_CookieList &cookies)
 

Friends

class NET_NetworkCookieStore
 

Detailed Description

Definition at line 29 of file NET_NetworkCookie.h.

Member Enumeration Documentation

Enumerator
NameAndValueOnly 
Full 

Definition at line 32 of file NET_NetworkCookie.h.

Constructor & Destructor Documentation

NET_NetworkCookie::NET_NetworkCookie ( )
NET_NetworkCookie::NET_NetworkCookie ( const UT_StringRef name,
const UT_StringRef value 
)
NET_NetworkCookie::NET_NetworkCookie ( const NET_NetworkCookie cookie)
inline

Definition at line 123 of file NET_NetworkCookie.h.

NET_NetworkCookie::NET_NetworkCookie ( NET_NetworkCookie &&  cookie)
inline

Definition at line 160 of file NET_NetworkCookie.h.

Member Function Documentation

const NET_Time& NET_NetworkCookie::creation ( ) const
inline

Definition at line 69 of file NET_NetworkCookie.h.

const UT_StringHolder& NET_NetworkCookie::domain ( ) const
inline

Definition at line 68 of file NET_NetworkCookie.h.

void NET_NetworkCookie::dump ( ) const
const NET_Time& NET_NetworkCookie::expiration ( ) const
inline

Definition at line 70 of file NET_NetworkCookie.h.

bool NET_NetworkCookie::hasExpired ( ) const
bool NET_NetworkCookie::hasMatchingDomain ( const NET_NetworkCookie cookie) const
bool NET_NetworkCookie::hasMatchingDomain ( const UT_Url url) const
bool NET_NetworkCookie::hasMatchingPath ( const UT_StringRef path) const
bool NET_NetworkCookie::hasMatchingPath ( const UT_Url url) const
bool NET_NetworkCookie::hasMatchingPath ( const NET_NetworkCookie cookie) const
bool NET_NetworkCookie::hasSameIdentifier ( const NET_NetworkCookie cookie) const
bool NET_NetworkCookie::isHttpOnly ( ) const
inline

Definition at line 73 of file NET_NetworkCookie.h.

bool NET_NetworkCookie::isPersistent ( ) const
inline

Definition at line 76 of file NET_NetworkCookie.h.

bool NET_NetworkCookie::isSecure ( ) const
inline

Definition at line 74 of file NET_NetworkCookie.h.

bool NET_NetworkCookie::isValid ( ) const
const NET_Time& NET_NetworkCookie::lastAccess ( ) const
inline

Definition at line 75 of file NET_NetworkCookie.h.

const UT_StringHolder& NET_NetworkCookie::name ( ) const
inline

Definition at line 67 of file NET_NetworkCookie.h.

void NET_NetworkCookie::normalize ( const UT_Url url)
bool NET_NetworkCookie::operator!= ( const NET_NetworkCookie cookie) const
inline

Definition at line 209 of file NET_NetworkCookie.h.

NET_NetworkCookie & NET_NetworkCookie::operator= ( const NET_NetworkCookie cookie)
inline

Definition at line 141 of file NET_NetworkCookie.h.

NET_NetworkCookie & NET_NetworkCookie::operator= ( NET_NetworkCookie &&  cookie)
inline

Definition at line 178 of file NET_NetworkCookie.h.

bool NET_NetworkCookie::operator== ( const NET_NetworkCookie cookie) const
inline

Definition at line 198 of file NET_NetworkCookie.h.

bool NET_NetworkCookie::parseCookie ( const UT_StringRef cookie)
static void NET_NetworkCookie::parseCookies ( const UT_StringArray cookie_string,
NET_CookieList cookies 
)
static
const UT_StringHolder& NET_NetworkCookie::path ( ) const
inline

Definition at line 71 of file NET_NetworkCookie.h.

void NET_NetworkCookie::setCreation ( const NET_Time t)
inline

Definition at line 80 of file NET_NetworkCookie.h.

void NET_NetworkCookie::setDomain ( const UT_StringHolder domain)
inline

Definition at line 79 of file NET_NetworkCookie.h.

void NET_NetworkCookie::setExpiration ( const NET_Time t)
inline

Definition at line 81 of file NET_NetworkCookie.h.

bool NET_NetworkCookie::setExpiration ( const UT_StringRef date)
inline

Definition at line 87 of file NET_NetworkCookie.h.

void NET_NetworkCookie::setHttpOnly ( bool  http_only)
inline

Definition at line 97 of file NET_NetworkCookie.h.

void NET_NetworkCookie::setLastAccess ( const NET_Time t)
inline

Definition at line 99 of file NET_NetworkCookie.h.

void NET_NetworkCookie::setName ( const UT_StringHolder name)
inline

Definition at line 78 of file NET_NetworkCookie.h.

void NET_NetworkCookie::setPath ( const UT_StringHolder path)
inline

Definition at line 95 of file NET_NetworkCookie.h.

void NET_NetworkCookie::setPersistent ( bool  is_persistent)
inline

Definition at line 100 of file NET_NetworkCookie.h.

void NET_NetworkCookie::setSecure ( bool  is_secure)
inline

Definition at line 98 of file NET_NetworkCookie.h.

void NET_NetworkCookie::setValue ( const UT_StringHolder value)
inline

Definition at line 96 of file NET_NetworkCookie.h.

UT_StringHolder NET_NetworkCookie::toString ( StringForm  form = Full) const
const UT_StringHolder& NET_NetworkCookie::value ( ) const
inline

Definition at line 72 of file NET_NetworkCookie.h.

Friends And Related Function Documentation

Definition at line 105 of file NET_NetworkCookie.h.


The documentation for this class was generated from the following file: