public class ThreadLocalMimeBodyPartRecorder extends Object implements MimeBodyPartRecorder
ThreadLocal to keep track of embeddable images.
A single instance can be distributed amongst the application under the downside of having to track in the same thread as the caller of record.
If the log level is set to debug, this implementation will perform a check for binary equality of
DataSources with the same name.
| Constructor and Description |
|---|
ThreadLocalMimeBodyPartRecorder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRecording() |
<T> com.atlassian.fugue.Pair<com.atlassian.fugue.Maybe<T>,Iterable<MimeBodyPartReference>> |
record(Callable<T> callback)
Deprecated.
since 7.0.1. Use
MimeBodyPartRecorder.startRecording(Callable) |
com.atlassian.fugue.Maybe<MimeBodyPartReference> |
track(DataSource source)
Deprecated.
since 7.0.1. Use
MimeBodyPartRecorder.trackSource(DataSource) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstartRecording, trackSource@Deprecated public <T> com.atlassian.fugue.Pair<com.atlassian.fugue.Maybe<T>,Iterable<MimeBodyPartReference>> record(Callable<T> callback) throws Exception
MimeBodyPartRecorder.startRecording(Callable)MimeBodyPartRecorderMimeBodyPartRecorder.track(javax.activation.DataSource) calls.record in interface MimeBodyPartRecorderT - the return type of the callbackcallback - the code eligible for recordingException - if the callback escapespublic boolean isRecording()
isRecording in interface MimeBodyPartRecorder@Deprecated public com.atlassian.fugue.Maybe<MimeBodyPartReference> track(DataSource source)
MimeBodyPartRecorder.trackSource(DataSource)MimeBodyPartRecordertrack in interface MimeBodyPartRecordersource - a DataSource encapsulating the access to the image dataCopyright © 2003–2023 Atlassian. All rights reserved.