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

ApacheResponse Class Reference

#include <ApacheResponse.h>

Inheritance diagram for ApacheResponse

Inheritance graph

[legend]
Collaboration diagram for ApacheResponse:

Collaboration graph

[legend]
List of all members.

Public Methods

virtual nsresult GetOutputStream (nsIOutputStream **_retval)
virtual nsresult SetContentType (const char *contentType)
virtual nsresult SetStatus (PRUint32 status)
virtual nsresult GetStatus (PRUint32 *_retval)
virtual nsresult SetHeader (const char *name, const char *value)
virtual nsresult AddHeader (const char *name, const char *value)
virtual nsresult AddCookie (px7ICookie *cookie)
virtual nsresult Redirect (const char *url)
 ApacheResponse (request_rec *r)
virtual ~ApacheResponse ()

Protected Methods

void sendHeaders ()
const char* getCookieHeaderValue (px7ICookie* pCookie)

Private Attributes

request_rec* m_r
nsCOMPtr<nsIOutputStreamm_outputStream
bool m_sentHeaders
int m_status
bool m_redirect

Constructor & Destructor Documentation

ApacheResponse::ApacheResponse ( request_rec * r )
 

Definition at line 21 of file ApacheResponse.cpp.

ApacheResponse::~ApacheResponse ( ) [virtual]
 

Definition at line 30 of file ApacheResponse.cpp.


Member Function Documentation

NS_IMETHODIMP ApacheResponse::AddCookie ( px7ICookie * cookie ) [virtual]
 

Definition at line 191 of file ApacheResponse.cpp.

NS_IMETHODIMP ApacheResponse::AddHeader ( const char * name,
const char * value ) [virtual]
 

Definition at line 180 of file ApacheResponse.cpp.

NS_IMETHODIMP ApacheResponse::GetOutputStream ( nsIOutputStream ** _retval ) [virtual]
 

Definition at line 135 of file ApacheResponse.cpp.

NS_IMETHODIMP ApacheResponse::GetStatus ( PRUint32 * _retval ) [virtual]
 

Definition at line 161 of file ApacheResponse.cpp.

NS_IMETHODIMP ApacheResponse::Redirect ( const char * url ) [virtual]
 

Definition at line 199 of file ApacheResponse.cpp.

NS_IMETHODIMP ApacheResponse::SetContentType ( const char * contentType ) [virtual]
 

Definition at line 145 of file ApacheResponse.cpp.

NS_IMETHODIMP ApacheResponse::SetHeader ( const char * name,
const char * value ) [virtual]
 

Definition at line 169 of file ApacheResponse.cpp.

Referenced by Redirect().

NS_IMETHODIMP ApacheResponse::SetStatus ( PRUint32 status ) [virtual]
 

Definition at line 153 of file ApacheResponse.cpp.

Referenced by Redirect().

const char * ApacheResponse::getCookieHeaderValue ( px7ICookie * pCookie ) [protected, virtual]
 

Reimplemented from Response.

Definition at line 50 of file ApacheResponse.cpp.

void ApacheResponse::sendHeaders ( ) [protected, virtual]
 

Reimplemented from Response.

Definition at line 34 of file ApacheResponse.cpp.

Referenced by GetOutputStream().


Member Data Documentation

nsCOMPtr< nsIOutputStream > ApacheResponse::m_outputStream [private]
 

Definition at line 28 of file ApacheResponse.h.

request_rec * ApacheResponse::m_r [private]
 

Definition at line 27 of file ApacheResponse.h.

bool ApacheResponse::m_redirect [private]
 

Definition at line 31 of file ApacheResponse.h.

bool ApacheResponse::m_sentHeaders [private]
 

Definition at line 29 of file ApacheResponse.h.

int ApacheResponse::m_status [private]
 

Definition at line 30 of file ApacheResponse.h.


The documentation for this class was generated from the following files:
Generated at Tue Sep 12 16:34:12 2000 by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000