NonStop SOAP User's Manual

Customizing the SOAP Server
NonStop SOAP User’s Manual520501-012
8-26
class AttachmentManager
class AttachmentManager
This class creates and deletes Attachment objects.
typedef map<string, Attachment *, less<string> > AttachmentMap;
typedef map<string, Attachment *, less<string> >::iterator
AttachmentMapIterator;
Class
class AttachmentManager
{
Public
AttachmentManager()
AttachmentManager(const string & mimeBoundary) throw
(SOAP_Exception)
This is the constructor.
AttachmentManager(const AttachmentManager& aMgr)
This is the copy constructor.
Performs a deep copy of all the attachments registered with
AttachmentManager being duplicated.
AttachmentManager()
This is the destructor.
createAttachment() throw (SOAP_Exception)
createAttachment(const string & contentID, const string & type)
throw (SOAP_Exception)
Creates an attachment.
If the contentID is a duplicate the older attachment with the duplicate ID is
overwritten.
dupAttachment(const string & existingContentID, const string &
newContentID) throw (SOAP_Exception)
Duplicates and registers an attachment already registered with the
AttachmentManager.
addAttachment(Attachment & att)
Registers an existing attachment with the AttachmentManager.
getAttachment(const string & contentID) const