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

HttpFile Class Reference

Inheritance diagram for HttpFile:

HttpDataHandler List of all members.

Public Member Functions

 HttpFile ()
virtual int send (HttpThreadContext *, ConnectionPtr s, const char *filenamePath, const char *cgi, int execute=0, int OnlyHeader=0)
virtual ~HttpFile ()

Static Public Member Functions

int load (XmlParser *)
int unLoad ()

Static Private Member Functions

int appendDataToHTTPChannel (HttpThreadContext *td, char *buffer, u_long size, File *appendFile, FiltersChain *chain, bool append, bool useChunks, u_long realBufferSize, MemoryStream *tmpStream)

Constructor & Destructor Documentation

HttpFile::HttpFile  ) 
 

Constructor for the class.

HttpFile::~HttpFile  )  [virtual]
 

Destroy the object.


Member Function Documentation

int HttpFile::appendDataToHTTPChannel HttpThreadContext td,
char *  buffer,
u_long  size,
File appendFile,
FiltersChain chain,
bool  append,
bool  useChunks,
u_long  realBufferSize,
MemoryStream tmpStream
[static, private]
 

Custom version for the appendDataToHTTPChannel function, this is slower that the HttpDataHandler one but the internal buffer is needed by the filters chain.

Parameters:
td The HTTP thread context.
buffer Data to send.
size Size of the buffer.
appendFile The file where append if in append mode.
chain Where send data if not append.
append Append to the file?
useChunks Can we use HTTP chunks to send data?
realBufferSize The real dimension of the buffer that can be used by this method.
tmpStream A support on memory read/write stream used internally by the function.

int HttpFile::load XmlParser  )  [static]
 

Load the static elements.

Parameters:
confFile Not used.

Reimplemented from HttpDataHandler.

int HttpFile::send HttpThreadContext td,
ConnectionPtr  s,
const char *  filenamePath,
const char *  cgi,
int  execute = 0,
int  onlyHeader = 0
[virtual]
 

Send a file to the client using the HTTP protocol.

Parameters:
td The current HTTP thread context.
s A pointer to the connection.
filenamePath The path of the static file to send.
exec Not used.
onlyHeader Specify if send only the HTTP header.

Reimplemented from HttpDataHandler.

int HttpFile::unLoad  )  [static]
 

Unload the static elements.

Reimplemented from HttpDataHandler.


Generated on Thu May 1 12:41:01 2008 for MyServer by  doxygen 1.3.9.1