

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 |
| HttpServletRequestImpl & | req |
| 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 |
Definition at line 497 of file HttpServletRequestImpl.cpp.
enum container::MimePartCharSink::state [private] |
Definition at line 500 of file HttpServletRequestImpl.cpp.
| 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.
| 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().

| std::string container::MimePartCharSink::getHeaderPart | ( | std::string | header, | |
| std::string::size_type | start | |||
| ) | [inline, private] |
| void container::MimePartCharSink::partDone | ( | ) | [inline] |
Definition at line 575 of file HttpServletRequestImpl.cpp.
References container::HttpServletRequestImpl::addParam(), container::HttpServletRequestImpl::addUploadedFile(), contentType, dataout, empty, fileName, filePath, killFile, partName, and req.
Referenced by container::HttpServletRequestImpl::parseMultipartData().

| 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().

std::string container::MimePartCharSink::contentType [private] |
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().
bool container::MimePartCharSink::empty [private] |
std::string container::MimePartCharSink::fileName [private] |
Definition at line 511 of file HttpServletRequestImpl.cpp.
Referenced by partDone(), and processHeader().
std::string container::MimePartCharSink::filePath [private] |
Definition at line 512 of file HttpServletRequestImpl.cpp.
Referenced by partDone(), processHeader(), and ~MimePartCharSink().
std::string container::MimePartCharSink::headerName [private] |
Definition at line 509 of file HttpServletRequestImpl.cpp.
Referenced by consume(), and processHeader().
std::string container::MimePartCharSink::headerValue [private] |
Definition at line 510 of file HttpServletRequestImpl.cpp.
Referenced by consume(), and processHeader().
bool container::MimePartCharSink::killFile [private] |
Definition at line 517 of file HttpServletRequestImpl.cpp.
Referenced by partDone(), and ~MimePartCharSink().
std::string container::MimePartCharSink::partName [private] |
Definition at line 515 of file HttpServletRequestImpl.cpp.
Referenced by partDone(), and processHeader().
Definition at line 508 of file HttpServletRequestImpl.cpp.
Referenced by partDone(), and processHeader().