Class MultipartAlternativeWorker
- java.lang.Object
-
- com.levigo.jadice.server.core.NodeWorker<T>
-
- com.levigo.jadice.server.core.StreamWorker<MultipartAlternativeNode>
-
- com.levigo.jadice.server.javamail.MultipartAlternativeWorker
-
- All Implemented Interfaces:
QualifiedLogEventReceiver
,WorkerController<MultipartAlternativeNode>
,Runnable
public class MultipartAlternativeWorker extends StreamWorker<MultipartAlternativeNode>
A the worker for theMultipartAlternativeNode
.
-
-
Constructor Summary
Constructors Constructor Description MultipartAlternativeWorker()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static boolean
matches(String contentType, String wantedMimeType)
protected static boolean
matches(javax.mail.internet.ContentType contentType, String wantedMimeType)
protected void
work(Stream stream)
Implement this method in order to work on a single stream.-
Methods inherited from class com.levigo.jadice.server.core.StreamWorker
accept, reject, work
-
Methods inherited from class com.levigo.jadice.server.core.NodeWorker
abort, abortNow, addInputBundle, addOutputBundle, doAbort, doAbortNow, error, error, error, fail, fail, fail, getController, getInputBundle, getInputBundles, getJob, getLimitSupport, getNode, getOutputBundle, getOutputBundles, getServerJob, getState, getStreamTransportFactory, getTransportSender, initialize, isAbortRequested, postWork, preWork, run, setDescriptor, setJob, toString, warn, warn, warn
-
-
-
-
Method Detail
-
work
protected void work(Stream stream) throws Throwable
Description copied from class:StreamWorker
Implement this method in order to work on a single stream.- Specified by:
work
in classStreamWorker<MultipartAlternativeNode>
- Parameters:
stream
- theStream
to work on- Throws:
Throwable
- in case of processing failure
-
matches
protected static final boolean matches(String contentType, String wantedMimeType) throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
-
matches
protected static final boolean matches(javax.mail.internet.ContentType contentType, String wantedMimeType) throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
-
-