Class DefaultMultipartRelatedHandler

  • All Implemented Interfaces:
    MultipartRelatedHandler

    public class DefaultMultipartRelatedHandler
    extends Object
    implements MultipartRelatedHandler
    This is the default internal implementation that is used for providing the multipart/related stream processing. Note: THIS IS AN INTERNAL CLASS, DEVIATING FROM THE DEFAULT PROCESSING LOGIC ISN'T SUPPORTED.
    • Constructor Detail

      • DefaultMultipartRelatedHandler

        public DefaultMultipartRelatedHandler()
    • Method Detail

      • handleMultipartRelated

        public MultipartRelatedHandlerResult handleMultipartRelated​(Stream stream,
                                                                    javax.mail.Multipart m,
                                                                    NodeWorker nodeWorker)
                                                             throws javax.mail.MessagingException
        Description copied from interface: MultipartRelatedHandler
        Processes the multipart/related stream.
        Specified by:
        handleMultipartRelated in interface MultipartRelatedHandler
        Parameters:
        stream - the provided multipart/related stream.
        m - the mail multipart object that is extracted from the stream.
        nodeWorker - the worker calling this handler. Used for executing functions in the context of the worker (e.g. warn())
        Throws:
        javax.mail.MessagingException - if a mail object related exception occurs.
      • setInternalMultipartRelatedHandler

        public void setInternalMultipartRelatedHandler​(MultipartRelatedHandler internalMultipartRelatedHandler)
        Note: THIS IS AN INTERNAL CLASS ATTRIBUTE, DEVIATING FROM THE DEFAULT PROCESSING LOGIC ISN'T SUPPORTED Via setting a new interalMultipartRelatedHandler the logic can be adjusted.
        Parameters:
        internalMultipartRelatedHandler - for internal use only: The adjusted multipart/related handler.