Class DefaultMultipartRelatedHandler
- java.lang.Object
-
- com.levigo.jadice.server.javamail.internal.multipart.related.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 Summary
Constructors Constructor Description DefaultMultipartRelatedHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultipartRelatedHandler
getInternalMultipartRelatedHandler()
MultipartRelatedHandlerResult
handleMultipartRelated(Stream stream, javax.mail.Multipart m, NodeWorker nodeWorker)
Processes the multipart/related stream.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.
-
-
-
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 interfaceMultipartRelatedHandler
- 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.
-
getInternalMultipartRelatedHandler
public MultipartRelatedHandler getInternalMultipartRelatedHandler()
-
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.
-
-