Package org.apache.james.mime4j.message
Class MessageBuilder
- java.lang.Object
-
- org.apache.james.mime4j.message.MessageBuilder
-
@Deprecated public class MessageBuilder extends Object
Deprecated.Deprecated: please useMessage.Builder
instead This builder will create message that do not respect theMessage.getDate()
contract regarding the return value when the message do not have a Date header See MIME4J-262
-
-
Constructor Summary
Constructors Constructor Description MessageBuilder()
Deprecated.
-
Method Summary
-
-
-
Method Detail
-
create
public static MessageBuilder create()
Deprecated.
-
createCopy
public static MessageBuilder createCopy(Message other)
Deprecated.
-
read
public static MessageBuilder read(InputStream is) throws IOException
Deprecated.- Throws:
IOException
-
enableFlatMode
public MessageBuilder enableFlatMode()
Deprecated.
-
disableFlatMode
public MessageBuilder disableFlatMode()
Deprecated.
-
enableContentDecoding
public MessageBuilder enableContentDecoding()
Deprecated.
-
disableContentDecoding
public MessageBuilder disableContentDecoding()
Deprecated.
-
setField
public MessageBuilder setField(Field field)
Deprecated.
-
addField
public MessageBuilder addField(Field field)
Deprecated.
-
removeFields
public MessageBuilder removeFields(String name)
Deprecated.
-
clearFields
public MessageBuilder clearFields()
Deprecated.
-
containsField
public boolean containsField(String name)
Deprecated.
-
getMimeType
public String getMimeType()
Deprecated.
-
getCharset
public String getCharset()
Deprecated.
-
getContentTransferEncoding
public String getContentTransferEncoding()
Deprecated.
-
setContentType
public MessageBuilder setContentType(String mimeType, NameValuePair... parameters)
Deprecated.
-
setContentTransferEncoding
public MessageBuilder setContentTransferEncoding(String contentTransferEncoding)
Deprecated.
-
getDispositionType
public String getDispositionType()
Deprecated.
-
setContentDisposition
public MessageBuilder setContentDisposition(String dispositionType)
Deprecated.
-
setContentDisposition
public MessageBuilder setContentDisposition(String dispositionType, String filename)
Deprecated.
-
setContentDisposition
public MessageBuilder setContentDisposition(String dispositionType, String filename, long size)
Deprecated.
-
setContentDisposition
public MessageBuilder setContentDisposition(String dispositionType, String filename, long size, Date creationDate, Date modificationDate, Date readDate)
Deprecated.
-
getBody
public Body getBody()
Deprecated.
-
setBody
public MessageBuilder setBody(Multipart multipart)
Deprecated.
-
setBody
public MessageBuilder setBody(Message message)
Deprecated.
-
setBody
public MessageBuilder setBody(Body body)
Deprecated.
-
setBody
public MessageBuilder setBody(TextBody textBody)
Deprecated.
-
setBody
public MessageBuilder setBody(BinaryBody binaryBody)
Deprecated.
-
setBody
public MessageBuilder setBody(String text, Charset charset) throws IOException
Deprecated.- Throws:
IOException
-
setBody
public MessageBuilder setBody(String text, String subtype, Charset charset) throws IOException
Deprecated.- Throws:
IOException
-
setBody
public MessageBuilder setBody(byte[] bin, String mimeType) throws IOException
Deprecated.- Throws:
IOException
-
getFilename
public String getFilename()
Deprecated.
-
getSize
public long getSize()
Deprecated.
-
getCreationDate
public Date getCreationDate()
Deprecated.
-
getModificationDate
public Date getModificationDate()
Deprecated.
-
getReadDate
public Date getReadDate()
Deprecated.
-
getMessageId
public String getMessageId()
Deprecated.
-
setMessageId
public MessageBuilder setMessageId(String messageId)
Deprecated.
-
generateMessageId
public MessageBuilder generateMessageId(String hostname)
Deprecated.
-
getSubject
public String getSubject()
Deprecated.
-
setSubject
public MessageBuilder setSubject(String subject)
Deprecated.
-
getDate
public Date getDate()
Deprecated.
-
setDate
public MessageBuilder setDate(Date date)
Deprecated.
-
setDate
public MessageBuilder setDate(Date date, TimeZone zone)
Deprecated.
-
getSender
public Mailbox getSender()
Deprecated.
-
setSender
public MessageBuilder setSender(Mailbox sender)
Deprecated.
-
setSender
public MessageBuilder setSender(String sender) throws ParseException
Deprecated.- Throws:
ParseException
-
getFrom
public MailboxList getFrom()
Deprecated.
-
setFrom
public MessageBuilder setFrom(String... from) throws ParseException
Deprecated.- Throws:
ParseException
-
setFrom
public MessageBuilder setFrom(Collection<Mailbox> from)
Deprecated.
-
setFrom
public MessageBuilder setFrom(Mailbox from)
Deprecated.
-
setFrom
public MessageBuilder setFrom(String from) throws ParseException
Deprecated.- Throws:
ParseException
-
setFrom
public MessageBuilder setFrom(Mailbox... from)
Deprecated.
-
getTo
public AddressList getTo()
Deprecated.
-
setTo
public MessageBuilder setTo(String... to) throws ParseException
Deprecated.- Throws:
ParseException
-
setTo
public MessageBuilder setTo(Collection<? extends Address> to)
Deprecated.
-
setTo
public MessageBuilder setTo(Address to)
Deprecated.
-
setTo
public MessageBuilder setTo(String to) throws ParseException
Deprecated.- Throws:
ParseException
-
setTo
public MessageBuilder setTo(Address... to)
Deprecated.
-
getCc
public AddressList getCc()
Deprecated.
-
setCc
public MessageBuilder setCc(Address... cc)
Deprecated.
-
setCc
public MessageBuilder setCc(Collection<? extends Address> cc)
Deprecated.
-
setCc
public MessageBuilder setCc(Address cc)
Deprecated.
-
getBcc
public AddressList getBcc()
Deprecated.
-
setBcc
public MessageBuilder setBcc(Address... bcc)
Deprecated.
-
setBcc
public MessageBuilder setBcc(Collection<? extends Address> bcc)
Deprecated.
-
setBcc
public MessageBuilder setBcc(Address bcc)
Deprecated.
-
copy
public MessageBuilder copy(Message other)
Deprecated.
-
parse
public MessageBuilder parse(InputStream is) throws IOException
Deprecated.- Throws:
IOException
-
getReplyTo
public AddressList getReplyTo()
Deprecated.
-
setReplyTo
public MessageBuilder setReplyTo(Address... replyTo)
Deprecated.
-
setReplyTo
public MessageBuilder setReplyTo(Collection<? extends Address> replyTo)
Deprecated.
-
setReplyTo
public MessageBuilder setReplyTo(Address replyTo)
Deprecated.
-
use
public MessageBuilder use(MimeConfig config)
Deprecated.
-
use
public MessageBuilder use(DecodeMonitor monitor)
Deprecated.
-
use
public MessageBuilder use(BodyDescriptorBuilder bodyDescBuilder)
Deprecated.
-
use
public MessageBuilder use(FieldParser<?> fieldParser)
Deprecated.
-
use
public MessageBuilder use(BodyFactory bodyFactory)
Deprecated.
-
build
public Message build()
Deprecated.
-
-