Class MSOutlookWorker
- java.lang.Object
-
- com.levigo.jadice.server.core.NodeWorker<T>
-
- com.levigo.jadice.server.core.StreamWorker<N>
-
- com.levigo.jadice.server.msoffice.AbstractMSWorker<MSOutlookNode>
-
- com.levigo.jadice.server.msoffice.MSOutlookWorker
-
- All Implemented Interfaces:
QualifiedLogEventReceiver
,WorkerController<MSOutlookNode>
,Runnable
public class MSOutlookWorker extends AbstractMSWorker<MSOutlookNode>
-
-
Field Summary
-
Fields inherited from class com.levigo.jadice.server.msoffice.AbstractMSWorker
logger
-
-
Constructor Summary
Constructors Constructor Description MSOutlookWorker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StreamDescriptor
createDescriptor(File result, StreamDescriptor parent)
protected Map<String,String>
getConversionProperties()
protected Class<? extends CommandReceiver>
getConverterClass()
protected String
getFilename()
protected String
getTargetMimeType()
String
getTextBodyCharset()
void
setTextBodyCharset(String textBodyCharsetName)
Provide information which charset a text mail body has.protected boolean
shallForwardStream(StreamDescriptor parentDescriptor, File file)
protected void
work(Stream stream)
Implement this method in order to work on a single stream.-
Methods inherited from class com.levigo.jadice.server.msoffice.AbstractMSWorker
doAbort, doAbortNow, getConverterPool, initialize, setConverterPool
-
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, error, error, error, fail, fail, fail, getController, getInputBundle, getInputBundles, getJob, getLimitSupport, getNode, getOutputBundle, getOutputBundles, getServerJob, getState, getStreamTransportFactory, getTransportSender, 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.- Overrides:
work
in classAbstractMSWorker<MSOutlookNode>
- Parameters:
stream
- theStream
to work on- Throws:
Throwable
- in case of processing failure
-
createDescriptor
protected StreamDescriptor createDescriptor(File result, StreamDescriptor parent)
- Specified by:
createDescriptor
in classAbstractMSWorker<MSOutlookNode>
-
shallForwardStream
protected boolean shallForwardStream(StreamDescriptor parentDescriptor, File file)
- Overrides:
shallForwardStream
in classAbstractMSWorker<MSOutlookNode>
-
getConversionProperties
protected Map<String,String> getConversionProperties()
- Specified by:
getConversionProperties
in classAbstractMSWorker<MSOutlookNode>
-
getConverterClass
protected Class<? extends CommandReceiver> getConverterClass()
- Specified by:
getConverterClass
in classAbstractMSWorker<MSOutlookNode>
-
getTargetMimeType
protected String getTargetMimeType()
- Specified by:
getTargetMimeType
in classAbstractMSWorker<MSOutlookNode>
-
getFilename
protected String getFilename()
- Specified by:
getFilename
in classAbstractMSWorker<MSOutlookNode>
-
getTextBodyCharset
public String getTextBodyCharset()
-
setTextBodyCharset
public void setTextBodyCharset(String textBodyCharsetName)
Provide information which charset a text mail body has.If MS Outlook hits a mail body in the format
text/plain
it is not clearly stated which encoding and charset MS Outlook selects to store this body. To give succeedingNode
s a hint about this the resultingStreamDescriptor
is enriched with the information provided here.- Parameters:
textBodyCharsetName
- The name of the charset to use for text bodies- Throws:
IllegalArgumentException
- If theCharset
is not supported by the JVM- Since:
- jadice server 5.2.2.0
-
-