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

HttpDir Class Reference

Inheritance diagram for HttpDir:

HttpDataHandler List of all members.

Public Member Functions

 HttpDir ()
int send (HttpThreadContext *, ConnectionPtr s, const char *directory, const char *cgi, int onlyHeader=0)
virtual ~HttpDir ()

Static Public Member Functions

int load (XmlParser *)
int unload ()

Private Member Functions

int appendDataToHTTPChannel (HttpThreadContext *td, char *buffer, u_long size, File *appendFile, FiltersChain *chain, bool append, bool useChunks)
void getFormattedSize (int bytes, string &out)

Constructor & Destructor Documentation

HttpDir::HttpDir  ) 
 

Constructor for the class.

HttpDir::~HttpDir  )  [virtual]
 

Destroy the object.


Member Function Documentation

int HttpDir::appendDataToHTTPChannel HttpThreadContext td,
char *  buffer,
u_long  size,
File appendFile,
FiltersChain chain,
bool  append,
bool  useChunks
[private]
 

void HttpDir::getFormattedSize int  bytes,
string &  out
[private]
 

Fullfill the string out with a formatted representation fr bytes.

Parameters:
bytes Size to format.
out Out string.

int HttpDir::load XmlParser  )  [static]
 

Load the static elements.

Reimplemented from HttpDataHandler.

int HttpDir::send HttpThreadContext td,
ConnectionPtr  s,
const char *  directory,
const char *  cgi,
int  onlyHeader = 0
[virtual]
 

Browse a directory printing its contents in an HTML file.

Parameters:
td The current thread context.
s The current connection structure.
directory Directory to show.
cgi non used.
onlyHeader Specify if send only the HTTP header.

Reimplemented from HttpDataHandler.

int HttpDir::unload  )  [static]
 

Unload the static elements.

Reimplemented from HttpDataHandler.


Generated on Thu Dec 21 13:12:32 2006 for MyServer by doxygen 1.3.6