Package org.apache.james.mime4j.dom
Class Message.Builder
- java.lang.Object
-
- org.apache.james.mime4j.internal.AbstractEntityBuilder
-
- org.apache.james.mime4j.dom.Message.Builder
-
- Enclosing interface:
- Message
public static class Message.Builder extends AbstractEntityBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private BodyDescriptorBuilderbodyDescBuilderprivate BodyFactorybodyFactoryprivate MimeConfigconfigprivate FieldParser<?>fieldParserprivate booleanflatModeprivate DecodeMonitormonitorprivate booleanrawContent
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Message.BuilderaddField(Field field)Adds a field to the end of the list of fields.Messagebuild()Message.BuilderclearFields()Clears all fields.Message.Buildercopy(Message other)Message.BuilderdisableContentDecoding()Enables disable content decoding forparse(java.io.InputStream)operation.Message.BuilderdisableFlatMode()Disables flat parsing mode forparse(java.io.InputStream)operation.Message.BuilderenableContentDecoding()Enables automatic content decoding forparse(java.io.InputStream)operation.Message.BuilderenableFlatMode()Enables flat parsing mode forparse(java.io.InputStream)operation.Message.BuildergenerateMessageId(java.lang.String hostname)Generates and sets message ID for this message.private AddressListgetAddressList(java.lang.String fieldName)AddressListgetBcc()Returns the value of the Bcc header field of this message asAddressListobject ornullif it is not present.AddressListgetCc()Returns the value of the Cc header field of this message asAddressListobject ornullif it is not present.java.util.DategetDate()Returns the value of the Date header field of this message asDateobject ornullif it is not present.MailboxListgetFrom()Returns the value of the From header field of this message asMailboxListobject ornullif it is not present.private MailboxgetMailbox(java.lang.String fieldName)private MailboxListgetMailboxList(java.lang.String fieldName)java.lang.StringgetMessageId()Returns the value of the Message-ID header field of this message ornullif it is not present.AddressListgetReplyTo()Returns the value of the Reply-To header field of this message asAddressListobject ornullif it is not present.MailboxgetSender()Returns the value of the Sender header field of this message asMailboxobject ornullif it is not present.java.lang.StringgetSubject()Returns the (decoded) value of the Subject header field of this message ornullif it is not present.AddressListgetTo()Returns the value of the To header field of this message asAddressListobject ornullif it is not present.static Message.Builderof()static Message.Builderof(java.io.InputStream is)static Message.Builderof(Message other)Message.Builderparse(java.io.InputStream is)private java.util.List<Address>parseAddresses(java.lang.String... addresses)private java.util.List<Mailbox>parseMailboxes(java.lang.String... mailboxes)Message.BuilderremoveFields(java.lang.String name)Removes allFields having the specified field name.private Message.BuildersetAddressList(java.lang.String fieldName, java.lang.String address)private Message.BuildersetAddressList(java.lang.String fieldName, java.lang.String... addresses)private Message.BuildersetAddressList(java.lang.String fieldName, java.util.Collection<? extends Address> addresses)private Message.BuildersetAddressList(java.lang.String fieldName, Address address)private Message.BuildersetAddressList(java.lang.String fieldName, Address... addresses)Message.BuildersetBcc(java.util.Collection<? extends Address> bcc)Sets Bcc header field of this message to the specified addresses.Message.BuildersetBcc(Address bcc)Sets Bcc header field of this message to the specified address.Message.BuildersetBcc(Address... bcc)Sets Bcc header field of this message to the specified addresses.Message.BuildersetBody(byte[] bin, java.lang.String mimeType)Sets binary content of this message with the given MIME type.Message.BuildersetBody(java.lang.String text, java.lang.String subtype, java.nio.charset.Charset charset)Sets text of this message with the given MIME subtype and charset.Message.BuildersetBody(java.lang.String text, java.nio.charset.Charset charset)Sets text of this message with the charset.Message.BuildersetBody(BinaryBody binaryBody)Sets binaryBody of this message.Message.BuildersetBody(Body body)Sets body of this message.Message.BuildersetBody(Message message)Sets body of this message.Message.BuildersetBody(Multipart multipart)Sets body of this message.Message.BuildersetBody(TextBody textBody)Sets body of this message.Message.BuildersetCc(java.util.Collection<? extends Address> cc)Sets Cc header field of this message to the specified addresses.Message.BuildersetCc(Address cc)Sets Cc header field of this message to the specified address.Message.BuildersetCc(Address... cc)Sets Cc header field of this message to the specified addresses.Message.BuildersetContentDisposition(java.lang.String dispositionType)Sets content disposition of this message to the specified disposition type.Message.BuildersetContentDisposition(java.lang.String dispositionType, java.lang.String filename)Sets content disposition of this message to the specified disposition type and filename.Message.BuildersetContentDisposition(java.lang.String dispositionType, java.lang.String filename, long size)Sets content disposition of this message to the specified values.Message.BuildersetContentDisposition(java.lang.String dispositionType, java.lang.String filename, long size, java.util.Date creationDate, java.util.Date modificationDate, java.util.Date readDate)Sets content disposition of this message to the specified values.Message.BuildersetContentTransferEncoding(java.lang.String contentTransferEncoding)Sets transfer encoding of this message.Message.BuildersetContentType(java.lang.String mimeType, NameValuePair... parameters)Sets transfer encoding of this message.Message.BuildersetDate(java.util.Date date)Sets Date header field for this message.Message.BuildersetDate(java.util.Date date, java.util.TimeZone zone)Sets Date header field for this message.Message.BuildersetField(Field field)Sets or replaces a field.Message.BuildersetFrom(java.lang.String from)Sets From header field of this message to the specified mailbox address.Message.BuildersetFrom(java.lang.String... from)Sets From header field of this message to the specified mailbox addresses.Message.BuildersetFrom(java.util.Collection<Mailbox> from)Sets From header field of this message to the specified mailbox addresses.Message.BuildersetFrom(Mailbox from)Sets From header field of this message to the specified mailbox address.Message.BuildersetFrom(Mailbox... from)Sets From header field of this message to the specified mailbox addresses.private Message.BuildersetMailbox(java.lang.String fieldName, java.lang.String mailbox)private Message.BuildersetMailbox(java.lang.String fieldName, Mailbox mailbox)private Message.BuildersetMailboxList(java.lang.String fieldName, java.lang.String mailbox)private Message.BuildersetMailboxList(java.lang.String fieldName, java.lang.String... mailboxes)private Message.BuildersetMailboxList(java.lang.String fieldName, java.util.Collection<Mailbox> mailboxes)private Message.BuildersetMailboxList(java.lang.String fieldName, Mailbox mailbox)private Message.BuildersetMailboxList(java.lang.String fieldName, Mailbox... mailboxes)Message.BuildersetMessageId(java.lang.String messageId)Sets message ID for this message.Message.BuildersetReplyTo(java.util.Collection<? extends Address> replyTo)Sets Reply-To header field of this message to the specified addresses.Message.BuildersetReplyTo(Address replyTo)Sets Reply-To header field of this message to the specified address.Message.BuildersetReplyTo(Address... replyTo)Sets Reply-To header field of this message to the specified addresses.Message.BuildersetSender(java.lang.String sender)Sets Sender header field of this message to the specified mailbox address.Message.BuildersetSender(Mailbox sender)Sets Sender header field of this message to the specified mailbox address.Message.BuildersetSubject(java.lang.String subject)Sets Subject header field for this message.Message.BuildersetTo(java.lang.String to)Sets To header field of this message to the specified address.Message.BuildersetTo(java.lang.String... to)Sets To header field of this message to the specified addresses.Message.BuildersetTo(java.util.Collection<? extends Address> to)Sets To header field of this message to the specified addresses.Message.BuildersetTo(Address to)Sets To header field of this message to the specified address.Message.BuildersetTo(Address... to)Sets To header field of this message to the specified addresses.Message.Builderuse(DecodeMonitor monitor)SetsDecodeMonitorthat will be used to handle malformed data when executingparse(java.io.InputStream).Message.Builderuse(FieldParser<?> fieldParser)SetsFieldParserthat will be used to generate parse message fields when executingparse(java.io.InputStream).Message.Builderuse(BodyFactory bodyFactory)SetsBodyFactorythat will be used to generate message body.Message.Builderuse(BodyDescriptorBuilder bodyDescBuilder)SetsBodyDescriptorBuilderthat will be used to generate body descriptors when executingparse(java.io.InputStream).Message.Builderuse(MimeConfig config)Sets MIME configuration.-
Methods inherited from class org.apache.james.mime4j.internal.AbstractEntityBuilder
containsField, getBody, getCharset, getContentTransferEncoding, getCreationDate, getDispositionType, getField, getField, getFields, getFields, getFields, getFilename, getMimeType, getModificationDate, getReadDate, getSize, obtainField, setBody, setBody, setBody
-
-
-
-
Field Detail
-
config
private MimeConfig config
-
monitor
private DecodeMonitor monitor
-
bodyDescBuilder
private BodyDescriptorBuilder bodyDescBuilder
-
fieldParser
private FieldParser<?> fieldParser
-
bodyFactory
private BodyFactory bodyFactory
-
flatMode
private boolean flatMode
-
rawContent
private boolean rawContent
-
-
Method Detail
-
of
public static Message.Builder of()
-
of
public static Message.Builder of(Message other)
-
of
public static Message.Builder of(java.io.InputStream is) throws java.io.IOException
- Throws:
java.io.IOException
-
use
public Message.Builder use(MimeConfig config)
Sets MIME configuration.- Parameters:
config- the configuration.
-
use
public Message.Builder use(DecodeMonitor monitor)
SetsDecodeMonitorthat will be used to handle malformed data when executingparse(java.io.InputStream).- Parameters:
monitor- the decoder monitor.
-
use
public Message.Builder use(BodyDescriptorBuilder bodyDescBuilder)
SetsBodyDescriptorBuilderthat will be used to generate body descriptors when executingparse(java.io.InputStream).- Parameters:
bodyDescBuilder- the body descriptor builder.
-
use
public Message.Builder use(FieldParser<?> fieldParser)
SetsFieldParserthat will be used to generate parse message fields when executingparse(java.io.InputStream).- Parameters:
fieldParser- the field parser.
-
use
public Message.Builder use(BodyFactory bodyFactory)
SetsBodyFactorythat will be used to generate message body.- Parameters:
bodyFactory- the body factory.
-
enableFlatMode
public Message.Builder enableFlatMode()
Enables flat parsing mode forparse(java.io.InputStream)operation.
-
disableFlatMode
public Message.Builder disableFlatMode()
Disables flat parsing mode forparse(java.io.InputStream)operation.
-
enableContentDecoding
public Message.Builder enableContentDecoding()
Enables automatic content decoding forparse(java.io.InputStream)operation.
-
disableContentDecoding
public Message.Builder disableContentDecoding()
Enables disable content decoding forparse(java.io.InputStream)operation.
-
copy
public Message.Builder copy(Message other)
-
setField
public Message.Builder setField(Field field)
Description copied from class:AbstractEntityBuilderSets or replaces a field. This method is useful for header fields such as Subject or Message-ID that should not occur more than once in a message. If this builder does not already contain a header field of the same name as the given field then it is added to the end of the list of fields (same behavior asAbstractEntityBuilder.addField(org.apache.james.mime4j.stream.Field)). Otherwise the first occurrence of a field with the same name is replaced by the given field and all further occurrences are removed.- Overrides:
setFieldin classAbstractEntityBuilder- Parameters:
field- the field to set.
-
addField
public Message.Builder addField(Field field)
Description copied from class:AbstractEntityBuilderAdds a field to the end of the list of fields.- Overrides:
addFieldin classAbstractEntityBuilder- Parameters:
field- the field to add.
-
removeFields
public Message.Builder removeFields(java.lang.String name)
Description copied from class:AbstractEntityBuilderRemoves allFields having the specified field name.- Overrides:
removeFieldsin classAbstractEntityBuilder- Parameters:
name- the field name (e.g. From, Subject).
-
clearFields
public Message.Builder clearFields()
Description copied from class:AbstractEntityBuilderClears all fields.- Overrides:
clearFieldsin classAbstractEntityBuilder
-
setContentTransferEncoding
public Message.Builder setContentTransferEncoding(java.lang.String contentTransferEncoding)
Description copied from class:AbstractEntityBuilderSets transfer encoding of this message.- Overrides:
setContentTransferEncodingin classAbstractEntityBuilder- Parameters:
contentTransferEncoding- transfer encoding to use.
-
setContentType
public Message.Builder setContentType(java.lang.String mimeType, NameValuePair... parameters)
Description copied from class:AbstractEntityBuilderSets transfer encoding of this message.- Overrides:
setContentTypein classAbstractEntityBuilder- Parameters:
mimeType- MIME type of this message the MIME type to use.parameters- content type parameters to use.
-
setContentDisposition
public Message.Builder setContentDisposition(java.lang.String dispositionType)
Description copied from class:AbstractEntityBuilderSets content disposition of this message to the specified disposition type. No filename, size or date parameters are included in the content disposition.- Overrides:
setContentDispositionin classAbstractEntityBuilder- Parameters:
dispositionType- disposition type value (usuallyinlineorattachment).
-
setContentDisposition
public Message.Builder setContentDisposition(java.lang.String dispositionType, java.lang.String filename)
Description copied from class:AbstractEntityBuilderSets content disposition of this message to the specified disposition type and filename. No size or date parameters are included in the content disposition.- Overrides:
setContentDispositionin classAbstractEntityBuilder- Parameters:
dispositionType- disposition type value (usuallyinlineorattachment).filename- filename parameter value ornullif the parameter should not be included.
-
setContentDisposition
public Message.Builder setContentDisposition(java.lang.String dispositionType, java.lang.String filename, long size)
Description copied from class:AbstractEntityBuilderSets content disposition of this message to the specified values. No date parameters are included in the content disposition.- Overrides:
setContentDispositionin classAbstractEntityBuilder- Parameters:
dispositionType- disposition type value (usuallyinlineorattachment).filename- filename parameter value ornullif the parameter should not be included.size- size parameter value or-1if the parameter should not be included.
-
setContentDisposition
public Message.Builder setContentDisposition(java.lang.String dispositionType, java.lang.String filename, long size, java.util.Date creationDate, java.util.Date modificationDate, java.util.Date readDate)
Description copied from class:AbstractEntityBuilderSets content disposition of this message to the specified values.- Overrides:
setContentDispositionin classAbstractEntityBuilder- Parameters:
dispositionType- disposition type value (usuallyinlineorattachment).filename- filename parameter value ornullif the parameter should not be included.size- size parameter value or-1if the parameter should not be included.creationDate- creation-date parameter value ornullif the parameter should not be included.modificationDate- modification-date parameter value ornullif the parameter should not be included.readDate- read-date parameter value ornullif the parameter should not be included.
-
setBody
public Message.Builder setBody(Body body)
Description copied from class:AbstractEntityBuilderSets body of this message. Also sets the content type based on properties of the givenBody.- Overrides:
setBodyin classAbstractEntityBuilder- Parameters:
body- the body.
-
setBody
public Message.Builder setBody(TextBody textBody)
Description copied from class:AbstractEntityBuilderSets body of this message. Also sets the content type based on properties of the givenBody.- Overrides:
setBodyin classAbstractEntityBuilder- Parameters:
textBody- the body.
-
setBody
public Message.Builder setBody(BinaryBody binaryBody)
Description copied from class:AbstractEntityBuilderSets binaryBody of this message. Also sets the content type based on properties of the givenBody.- Overrides:
setBodyin classAbstractEntityBuilder- Parameters:
binaryBody- the binaryBody.
-
setBody
public Message.Builder setBody(Multipart multipart)
Description copied from class:AbstractEntityBuilderSets body of this message. Also sets the content type based on properties of the givenMultipart.- Overrides:
setBodyin classAbstractEntityBuilder- Parameters:
multipart- the body.
-
setBody
public Message.Builder setBody(Message message)
Description copied from class:AbstractEntityBuilderSets body of this message. Also sets the content type based on properties of the givenMessage.- Overrides:
setBodyin classAbstractEntityBuilder- Parameters:
message- the body.
-
setBody
public Message.Builder setBody(java.lang.String text, java.nio.charset.Charset charset) throws java.io.IOException
Sets text of this message with the charset.- Parameters:
text- the text.charset- the charset of the text.- Throws:
java.io.IOException
-
setBody
public Message.Builder setBody(java.lang.String text, java.lang.String subtype, java.nio.charset.Charset charset) throws java.io.IOException
Sets text of this message with the given MIME subtype and charset.- Parameters:
text- the text.charset- the charset of the text.subtype- the text subtype (e.g. "plain", "html" or "xml").- Throws:
java.io.IOException
-
setBody
public Message.Builder setBody(byte[] bin, java.lang.String mimeType) throws java.io.IOException
Sets binary content of this message with the given MIME type.- Parameters:
bin- the body.mimeType- the MIME media type of the specified body ("type/subtype").- Throws:
java.io.IOException
-
getMessageId
public java.lang.String getMessageId()
Returns the value of the Message-ID header field of this message ornullif it is not present.- Returns:
- the identifier of this message.
-
generateMessageId
public Message.Builder generateMessageId(java.lang.String hostname)
Generates and sets message ID for this message.- Parameters:
hostname- host name to be included in the identifier ornullif no host name should be included.
-
setMessageId
public Message.Builder setMessageId(java.lang.String messageId)
Sets message ID for this message.- Parameters:
messageId- the message ID.
-
getSubject
public java.lang.String getSubject()
Returns the (decoded) value of the Subject header field of this message ornullif it is not present.- Returns:
- the subject of this message.
-
setSubject
public Message.Builder setSubject(java.lang.String subject)
Sets Subject header field for this message. The specified string may contain non-ASCII characters, in which case it gets encoded as an 'encoded-word' automatically.- Parameters:
subject- subject to set ornullto remove the subject header field.
-
getDate
public java.util.Date getDate()
Returns the value of the Date header field of this message asDateobject ornullif it is not present.- Returns:
- the date of this message.
-
setDate
public Message.Builder setDate(java.util.Date date)
Sets Date header field for this message. This method uses the defaultTimeZoneof this host to encode the specifiedDateobject into a string.- Parameters:
date- date to set ornullto remove the date header field.
-
setDate
public Message.Builder setDate(java.util.Date date, java.util.TimeZone zone)
Sets Date header field for this message. The specifiedTimeZoneis used to encode the specifiedDateobject into a string.- Parameters:
date- date to set ornullto remove the date header field.zone- a time zone.
-
getSender
public Mailbox getSender()
Returns the value of the Sender header field of this message asMailboxobject ornullif it is not present.- Returns:
- the sender of this message.
-
setSender
public Message.Builder setSender(Mailbox sender)
Sets Sender header field of this message to the specified mailbox address.- Parameters:
sender- address to set ornullto remove the header field.
-
setSender
public Message.Builder setSender(java.lang.String sender) throws ParseException
Sets Sender header field of this message to the specified mailbox address.- Parameters:
sender- address to set ornullto remove the header field.- Throws:
ParseException
-
getFrom
public MailboxList getFrom()
Returns the value of the From header field of this message asMailboxListobject ornullif it is not present.- Returns:
- value of the from field of this message.
-
setFrom
public Message.Builder setFrom(Mailbox from)
Sets From header field of this message to the specified mailbox address.- Parameters:
from- address to set ornullto remove the header field.
-
setFrom
public Message.Builder setFrom(java.lang.String from) throws ParseException
Sets From header field of this message to the specified mailbox address.- Parameters:
from- address to set ornullto remove the header field.- Throws:
ParseException
-
setFrom
public Message.Builder setFrom(Mailbox... from)
Sets From header field of this message to the specified mailbox addresses.- Parameters:
from- addresses to set ornullor no arguments to remove the header field.
-
setFrom
public Message.Builder setFrom(java.lang.String... from) throws ParseException
Sets From header field of this message to the specified mailbox addresses.- Parameters:
from- addresses to set ornullor no arguments to remove the header field.- Throws:
ParseException
-
setFrom
public Message.Builder setFrom(java.util.Collection<Mailbox> from)
Sets From header field of this message to the specified mailbox addresses.- Parameters:
from- addresses to set ornullor an empty collection to remove the header field.
-
getTo
public AddressList getTo()
Returns the value of the To header field of this message asAddressListobject ornullif it is not present.- Returns:
- value of the to field of this message.
-
setTo
public Message.Builder setTo(Address to)
Sets To header field of this message to the specified address.- Parameters:
to- address to set ornullto remove the header field.
-
setTo
public Message.Builder setTo(java.lang.String to) throws ParseException
Sets To header field of this message to the specified address.- Parameters:
to- address to set ornullto remove the header field.- Throws:
ParseException
-
setTo
public Message.Builder setTo(Address... to)
Sets To header field of this message to the specified addresses.- Parameters:
to- addresses to set ornullor no arguments to remove the header field.
-
setTo
public Message.Builder setTo(java.lang.String... to) throws ParseException
Sets To header field of this message to the specified addresses.- Parameters:
to- addresses to set ornullor no arguments to remove the header field.- Throws:
ParseException
-
setTo
public Message.Builder setTo(java.util.Collection<? extends Address> to)
Sets To header field of this message to the specified addresses.- Parameters:
to- addresses to set ornullor an empty collection to remove the header field.
-
getCc
public AddressList getCc()
Returns the value of the Cc header field of this message asAddressListobject ornullif it is not present.- Returns:
- value of the cc field of this message.
-
setCc
public Message.Builder setCc(Address cc)
Sets Cc header field of this message to the specified address.- Parameters:
cc- address to set ornullto remove the header field.
-
setCc
public Message.Builder setCc(Address... cc)
Sets Cc header field of this message to the specified addresses.- Parameters:
cc- addresses to set ornullor no arguments to remove the header field.
-
setCc
public Message.Builder setCc(java.util.Collection<? extends Address> cc)
Sets Cc header field of this message to the specified addresses.- Parameters:
cc- addresses to set ornullor an empty collection to remove the header field.
-
getBcc
public AddressList getBcc()
Returns the value of the Bcc header field of this message asAddressListobject ornullif it is not present.- Returns:
- value of the bcc field of this message.
-
setBcc
public Message.Builder setBcc(Address bcc)
Sets Bcc header field of this message to the specified address.- Parameters:
bcc- address to set ornullto remove the header field.
-
setBcc
public Message.Builder setBcc(Address... bcc)
Sets Bcc header field of this message to the specified addresses.- Parameters:
bcc- addresses to set ornullor no arguments to remove the header field.
-
setBcc
public Message.Builder setBcc(java.util.Collection<? extends Address> bcc)
Sets Bcc header field of this message to the specified addresses.- Parameters:
bcc- addresses to set ornullor an empty collection to remove the header field.
-
getReplyTo
public AddressList getReplyTo()
Returns the value of the Reply-To header field of this message asAddressListobject ornullif it is not present.- Returns:
- value of the reply to field of this message.
-
setReplyTo
public Message.Builder setReplyTo(Address replyTo)
Sets Reply-To header field of this message to the specified address.- Parameters:
replyTo- address to set ornullto remove the header field.
-
setReplyTo
public Message.Builder setReplyTo(Address... replyTo)
Sets Reply-To header field of this message to the specified addresses.- Parameters:
replyTo- addresses to set ornullor no arguments to remove the header field.
-
setReplyTo
public Message.Builder setReplyTo(java.util.Collection<? extends Address> replyTo)
Sets Reply-To header field of this message to the specified addresses.- Parameters:
replyTo- addresses to set ornullor an empty collection to remove the header field.
-
parse
public Message.Builder parse(java.io.InputStream is) throws java.io.IOException
- Throws:
java.io.IOException
-
build
public Message build()
-
getMailbox
private Mailbox getMailbox(java.lang.String fieldName)
-
setMailbox
private Message.Builder setMailbox(java.lang.String fieldName, Mailbox mailbox)
-
setMailbox
private Message.Builder setMailbox(java.lang.String fieldName, java.lang.String mailbox) throws ParseException
- Throws:
ParseException
-
getMailboxList
private MailboxList getMailboxList(java.lang.String fieldName)
-
setMailboxList
private Message.Builder setMailboxList(java.lang.String fieldName, Mailbox mailbox)
-
setMailboxList
private Message.Builder setMailboxList(java.lang.String fieldName, java.lang.String mailbox) throws ParseException
- Throws:
ParseException
-
setMailboxList
private Message.Builder setMailboxList(java.lang.String fieldName, Mailbox... mailboxes)
-
parseMailboxes
private java.util.List<Mailbox> parseMailboxes(java.lang.String... mailboxes) throws ParseException
- Throws:
ParseException
-
setMailboxList
private Message.Builder setMailboxList(java.lang.String fieldName, java.lang.String... mailboxes) throws ParseException
- Throws:
ParseException
-
setMailboxList
private Message.Builder setMailboxList(java.lang.String fieldName, java.util.Collection<Mailbox> mailboxes)
-
getAddressList
private AddressList getAddressList(java.lang.String fieldName)
-
setAddressList
private Message.Builder setAddressList(java.lang.String fieldName, Address address)
-
setAddressList
private Message.Builder setAddressList(java.lang.String fieldName, java.lang.String address) throws ParseException
- Throws:
ParseException
-
setAddressList
private Message.Builder setAddressList(java.lang.String fieldName, Address... addresses)
-
parseAddresses
private java.util.List<Address> parseAddresses(java.lang.String... addresses) throws ParseException
- Throws:
ParseException
-
setAddressList
private Message.Builder setAddressList(java.lang.String fieldName, java.lang.String... addresses) throws ParseException
- Throws:
ParseException
-
setAddressList
private Message.Builder setAddressList(java.lang.String fieldName, java.util.Collection<? extends Address> addresses)
-
-