class Poco::Net::PartHandler
Overview
The base class for all part or attachment handlers. Moreā¦
#include <PartHandler.h> class PartHandler { public: // methods virtual void handlePart( const MessageHeader& header, std::istream& stream ) = 0; }; // direct descendants class NullPartHandler;
Detailed Documentation
The base class for all part or attachment handlers.
Part handlers are used for handling email parts and attachments in MIME multipart messages, as well as file uploads via HTML forms.
Subclasses must override handlePart().
Methods
virtual void handlePart( const MessageHeader& header, std::istream& stream ) = 0
Called for every part encountered during the processing of an email message or an uploaded HTML form.
Information about the part can be extracted from the given message header. What information can be obtained from header depends on the kind of part.
The content of the part can be read from stream.