CPPSERV


Home Projects Jobs Clientele Contact
CPPSERV Documentation Download TODO Mailing lists Bug tracker News RSS Feed Browse source

container::MimePartCharSink Class Reference

Inheritance diagram for container::MimePartCharSink:
Collaboration diagram for container::MimePartCharSink:

List of all members.


Public Member Functions

virtual void consume (char *data, int maxind)
void partDone ()
 MimePartCharSink (HttpServletRequestImpl &req)
 ~MimePartCharSink ()

Private Types

enum  state {
  HEADER_NAME, HEADER_VALUE_BEGIN, HEADER_VALUE, HEADER_VALUE_END,
  DATA
}

Private Member Functions

void processHeader ()
std::string getHeaderPart (std::string header, std::string::size_type start)

Private Attributes

enum
container::MimePartCharSink::state 
state
HttpServletRequestImplreq
std::string headerName
std::string headerValue
std::string fileName
std::string filePath
std::string contentType
std::ostream * dataout
std::string partName
bool empty
bool killFile

Detailed Description

Definition at line 497 of file HttpServletRequestImpl.cpp.


Member Enumeration Documentation

Enumerator:
HEADER_NAME 
HEADER_VALUE_BEGIN 
HEADER_VALUE 
HEADER_VALUE_END 
DATA 

Definition at line 500 of file HttpServletRequestImpl.cpp.


Constructor & Destructor Documentation

container::MimePartCharSink::MimePartCharSink ( HttpServletRequestImpl req  )  [inline]

Definition at line 654 of file HttpServletRequestImpl.cpp.

container::MimePartCharSink::~MimePartCharSink (  )  [inline]

Definition at line 661 of file HttpServletRequestImpl.cpp.

References dataout, filePath, and killFile.


Member Function Documentation

virtual void container::MimePartCharSink::consume ( char *  data,
int  maxind 
) [inline, virtual]

Implements container::CharSink.

Definition at line 519 of file HttpServletRequestImpl.cpp.

References DATA, dataout, empty, HEADER_NAME, HEADER_VALUE, HEADER_VALUE_BEGIN, HEADER_VALUE_END, headerName, headerValue, and processHeader().

Here is the call graph for this function:

std::string container::MimePartCharSink::getHeaderPart ( std::string  header,
std::string::size_type  start 
) [inline, private]

Definition at line 632 of file HttpServletRequestImpl.cpp.

Referenced by processHeader().

void container::MimePartCharSink::partDone (  )  [inline]

void container::MimePartCharSink::processHeader (  )  [inline, private]

Definition at line 587 of file HttpServletRequestImpl.cpp.

References contentType, DATA, dataout, fileName, filePath, container::HttpServletRequestImpl::getFileSaveTemplate(), getHeaderPart(), HEADER_NAME, headerName, headerValue, partName, and req.

Referenced by consume().

Here is the call graph for this function:


Member Data Documentation

Definition at line 513 of file HttpServletRequestImpl.cpp.

Referenced by partDone(), and processHeader().

std::ostream* container::MimePartCharSink::dataout [private]

Definition at line 514 of file HttpServletRequestImpl.cpp.

Referenced by consume(), partDone(), processHeader(), and ~MimePartCharSink().

Definition at line 516 of file HttpServletRequestImpl.cpp.

Referenced by consume(), and partDone().

Definition at line 511 of file HttpServletRequestImpl.cpp.

Referenced by partDone(), and processHeader().

Definition at line 512 of file HttpServletRequestImpl.cpp.

Referenced by partDone(), processHeader(), and ~MimePartCharSink().

Definition at line 509 of file HttpServletRequestImpl.cpp.

Referenced by consume(), and processHeader().

Definition at line 510 of file HttpServletRequestImpl.cpp.

Referenced by consume(), and processHeader().

Definition at line 517 of file HttpServletRequestImpl.cpp.

Referenced by partDone(), and ~MimePartCharSink().

Definition at line 515 of file HttpServletRequestImpl.cpp.

Referenced by partDone(), and processHeader().


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

SourceForge.net Logo