Package org.apache.james.mime4j.message
Class MessageBuilder
java.lang.Object
org.apache.james.mime4j.message.MessageBuilder
Deprecated.
Deprecated: please use
Message.Builder
instead
This builder will create message that do not respect the
Message.getDate()
contract regarding the return
value when the message do not have a Date header
See MIME4J-262-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionDeprecated.private
MessageBuilder
(Message.Builder builder) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.build()
Deprecated.Deprecated.boolean
containsField
(String name) Deprecated.Deprecated.static MessageBuilder
create()
Deprecated.static MessageBuilder
createCopy
(Message other) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.generateMessageId
(String hostname) Deprecated.getBcc()
Deprecated.getBody()
Deprecated.getCc()
Deprecated.Deprecated.Deprecated.Deprecated.getDate()
Deprecated.Deprecated.Deprecated.<F extends Field>
FDeprecated.Deprecated.Deprecated.Deprecated.getFrom()
Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.long
getSize()
Deprecated.Deprecated.getTo()
Deprecated.parse
(InputStream is) Deprecated.static MessageBuilder
read
(InputStream is) Deprecated.removeFields
(String name) Deprecated.setBcc
(Collection<? extends Address> bcc) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.setBody
(BinaryBody binaryBody) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.setCc
(Collection<? extends Address> cc) Deprecated.Deprecated.Deprecated.setContentDisposition
(String dispositionType) Deprecated.setContentDisposition
(String dispositionType, String filename) Deprecated.setContentDisposition
(String dispositionType, String filename, long size) Deprecated.setContentDisposition
(String dispositionType, String filename, long size, Date creationDate, Date modificationDate, Date readDate) Deprecated.setContentTransferEncoding
(String contentTransferEncoding) Deprecated.setContentType
(String mimeType, NameValuePair... parameters) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.setFrom
(Collection<Mailbox> from) Deprecated.Deprecated.Deprecated.setMessageId
(String messageId) Deprecated.setReplyTo
(Collection<? extends Address> replyTo) Deprecated.setReplyTo
(Address replyTo) Deprecated.setReplyTo
(Address... replyTo) Deprecated.Deprecated.Deprecated.setSubject
(String subject) Deprecated.Deprecated.Deprecated.setTo
(Collection<? extends Address> to) Deprecated.Deprecated.Deprecated.use
(DecodeMonitor monitor) Deprecated.use
(FieldParser<?> fieldParser) Deprecated.use
(BodyFactory bodyFactory) Deprecated.use
(BodyDescriptorBuilder bodyDescBuilder) Deprecated.use
(MimeConfig config) Deprecated.
-
Field Details
-
builder
Deprecated.
-
-
Constructor Details
-
MessageBuilder
public MessageBuilder()Deprecated. -
MessageBuilder
Deprecated.
-
-
Method Details
-
create
Deprecated. -
createCopy
Deprecated. -
read
Deprecated.- Throws:
IOException
-
enableFlatMode
Deprecated. -
disableFlatMode
Deprecated. -
enableContentDecoding
Deprecated. -
disableContentDecoding
Deprecated. -
setField
Deprecated. -
addField
Deprecated. -
getField
Deprecated. -
getField
Deprecated. -
getFields
Deprecated. -
getFields
Deprecated. -
removeFields
Deprecated. -
clearFields
Deprecated. -
containsField
Deprecated. -
getMimeType
Deprecated. -
getCharset
Deprecated. -
getContentTransferEncoding
Deprecated. -
setContentType
Deprecated. -
setContentTransferEncoding
Deprecated. -
getDispositionType
Deprecated. -
setContentDisposition
Deprecated. -
setContentDisposition
Deprecated. -
setContentDisposition
Deprecated. -
setContentDisposition
public MessageBuilder setContentDisposition(String dispositionType, String filename, long size, Date creationDate, Date modificationDate, Date readDate) Deprecated. -
getBody
Deprecated. -
setBody
Deprecated. -
setBody
Deprecated. -
setBody
Deprecated. -
setBody
Deprecated. -
setBody
Deprecated. -
setBody
Deprecated.- Throws:
IOException
-
setBody
Deprecated.- Throws:
IOException
-
setBody
Deprecated.- Throws:
IOException
-
getFilename
Deprecated. -
getSize
public long getSize()Deprecated. -
getCreationDate
Deprecated. -
getModificationDate
Deprecated. -
getReadDate
Deprecated. -
getMessageId
Deprecated. -
setMessageId
Deprecated. -
generateMessageId
Deprecated. -
getSubject
Deprecated. -
setSubject
Deprecated. -
getDate
Deprecated. -
setDate
Deprecated. -
setDate
Deprecated. -
getSender
Deprecated. -
setSender
Deprecated. -
setSender
Deprecated.- Throws:
ParseException
-
getFrom
Deprecated. -
setFrom
Deprecated.- Throws:
ParseException
-
setFrom
Deprecated. -
setFrom
Deprecated. -
setFrom
Deprecated.- Throws:
ParseException
-
setFrom
Deprecated. -
getTo
Deprecated. -
setTo
Deprecated.- Throws:
ParseException
-
setTo
Deprecated. -
setTo
Deprecated. -
setTo
Deprecated.- Throws:
ParseException
-
setTo
Deprecated. -
getCc
Deprecated. -
setCc
Deprecated. -
setCc
Deprecated. -
setCc
Deprecated. -
getBcc
Deprecated. -
setBcc
Deprecated. -
setBcc
Deprecated. -
setBcc
Deprecated. -
copy
Deprecated. -
parse
Deprecated.- Throws:
IOException
-
getReplyTo
Deprecated. -
setReplyTo
Deprecated. -
setReplyTo
Deprecated. -
setReplyTo
Deprecated. -
use
Deprecated. -
use
Deprecated. -
use
Deprecated. -
use
Deprecated. -
use
Deprecated. -
build
Deprecated.
-