Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

mpcl::net::cgi::TCookie Class Reference

#include <cookie.hh>

Inheritance diagram for mpcl::net::cgi::TCookie:

List of all members.

Public Methods

 TCookie (const TCookie &rktCGI_COOKIE)
 TCookie (const TString &rkyNAME, const TString &rkyVALUE, const TGmtDate &rktEXPIRES=TGmtDate(IDate::eEmpty), const TString &rkyPATH="", const TString &rkyDOMAIN="", const bool kgSECURE=false)
 TCookie (std::basic_istream< char_type, traits_type > &rtSOURCE_ISTREAM)
TString name (void) const
 Gets the name of the cookie.

TString value (void) const
 Gets the value of the cookie.

bool operator== (const TCookie &rktCOOKIE) const

Protected Methods

void read (std::basic_istream< char_type, traits_type > &rtSOURCE_ISTREAM)
void write (std::basic_ostream< char_type, traits_type > &rtTARGET_OSTREAM) const

Detailed Description

CGI cookie class. Creates HTTP cookies for session-keeping. Also reads them from the client.

Definition at line 57 of file cookie.hh.


Constructor & Destructor Documentation

mpcl::net::cgi::TCookie::TCookie const TCookie &    rktCGI_COOKIE [inline]
 

Builds a new instance from another instance.

Parameters:
rktCGI_COOKIE  Source instance.

Definition at line 91 of file cookie.hh.

mpcl::net::cgi::TCookie::TCookie const TString &    rkyNAME,
const TString &    rkyVALUE,
const TGmtDate &    rktEXPIRES = TGmtDate (IDate::eEmpty),
const TString &    rkyPATH = "",
const TString &    rkyDOMAIN = "",
const bool    kgSECURE = false
[inline]
 

Builds a new instance.

Parameters:
rkyNAME  Name.
rkyVALUE  Value.
rktEXPIRES  Date of expiration.
rkyPATH  Path.
rkyDOMAIN  Domain.
kgSECURE  True if it must be used with HTTPS.

Definition at line 109 of file cookie.hh.

References mpcl::text::TString.

mpcl::net::cgi::TCookie::TCookie std::basic_istream< char_type, traits_type > &    rtSOURCE_ISTREAM [inline]
 

Builds a new instance from an input stream.

Parameters:
rtSOURCE_ISTREAM  Source stream.

Definition at line 127 of file cookie.hh.

References read().


Member Function Documentation

bool mpcl::net::cgi::TCookie::operator== const TCookie &    rktCOOKIE const [inline]
 

Returns true if both cookies are equal.

Parameters:
rktCOOKIE  Second cookie.
Returns:
True if both cookies are equal.

Definition at line 182 of file cookie.hh.

References yName, and yValue.

void mpcl::net::cgi::TCookie::read std::basic_istream< char_type, traits_type > &    rtSOURCE_ISTREAM [protected]
 

Reads an instance from stream rtSOURCE_ISTREAM.

Parameters:
rtSOURCE_ISTREAM  Source input stream.

Definition at line 36 of file cookie.cc.

Referenced by TCookie().

void mpcl::net::cgi::TCookie::write std::basic_ostream< char_type, traits_type > &    rtTARGET_OSTREAM const [protected]
 

Writes the instance onto stream rtTARGET_OSTREAM.

Parameters:
rtTARGET_OSTREAM  Target output stream.

Definition at line 75 of file cookie.cc.


The documentation for this class was generated from the following files:
Generated on Mon Oct 13 02:35:25 2003 for MPCL by doxygen1.2.18