IEmail.Message
public
static
class
IEmail.Message
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.IEmail.Message |
Container for email message data.
Summary
Constants | |
---|---|
String |
HTML
|
String |
PLAIN
|
Public constructors | |
---|---|
IEmail.Message()
|
|
IEmail.Message(String to, String subject, String body)
Convenience constructor: create a simple message |
Public methods | |
---|---|
void
|
addBcc(String address)
|
void
|
addCc(String address)
|
void
|
addTo(String address)
|
Collection<String>
|
getBcc()
|
String
|
getBody()
|
Collection<String>
|
getCc()
|
String
|
getContentType()
|
String
|
getSender()
|
String
|
getSubject()
|
Collection<String>
|
getTo()
|
boolean
|
isHtml()
|
void
|
setBody(String body)
|
void
|
setContentType(String contentType)
|
void
|
setHtml(boolean html)
|
void
|
setSender(String sender)
|
void
|
setSubject(String subject)
|
void
|
setTos(String[] recipients)
Set the recipients. |
Constants
HTML
String HTML
Constant Value: "text/html"
PLAIN
String PLAIN
Constant Value: "text/plain"
Public constructors
IEmail.Message
IEmail.Message ()
IEmail.Message
IEmail.Message (String to, String subject, String body)
Convenience constructor: create a simple message
Parameters | |
---|---|
to |
String : Single destination address |
subject |
String : Subject |
body |
String : Message body
|
Public methods
addBcc
void addBcc (String address)
Parameters | |
---|---|
address |
String |
addCc
void addCc (String address)
Parameters | |
---|---|
address |
String |
addTo
void addTo (String address)
Parameters | |
---|---|
address |
String |
getBcc
Collection<String> getBcc ()
Returns | |
---|---|
Collection<String> |
getBody
String getBody ()
Returns | |
---|---|
String |
getCc
Collection<String> getCc ()
Returns | |
---|---|
Collection<String> |
getContentType
String getContentType ()
Returns | |
---|---|
String |
getSender
String getSender ()
Returns | |
---|---|
String |
getSubject
String getSubject ()
Returns | |
---|---|
String |
getTo
Collection<String> getTo ()
Returns | |
---|---|
Collection<String> |
isHtml
boolean isHtml ()
Returns | |
---|---|
boolean |
setBody
void setBody (String body)
Parameters | |
---|---|
body |
String |
setContentType
void setContentType (String contentType)
Parameters | |
---|---|
contentType |
String |
setHtml
void setHtml (boolean html)
Parameters | |
---|---|
html |
boolean |
setSender
void setSender (String sender)
Parameters | |
---|---|
sender |
String |
setSubject
void setSubject (String subject)
Parameters | |
---|---|
subject |
String |
setTos
void setTos (String[] recipients)
Set the recipients. All previously added recipients will be replaced.
addTo(String)
to append to the recipients list.
Parameters | |
---|---|
recipients |
String : an array of recipient email addresses
|
Interfaces
Classes
- AaptParser
- AbiFormatter
- AbiUtils
- Alarm
- ArrayUtil
- BluetoothUtils
- Bugreport
- BuildTestsZipUtils
- BulkEmailer
- ByteArrayList
- CircularAtraceUtil
- CircularByteArray
- ClassPathScanner
- ClassPathScanner.ClassNameFilter
- ClassPathScanner.ExternalClassNameFilter
- CommandResult
- ConditionPriorityBlockingQueue
- ConditionPriorityBlockingQueue.AlwaysMatch
- ConfigCompletor
- DeviceConcurrentUtil
- DeviceConcurrentUtil.ShellCommandCallable
- DeviceRecoveryModeUtil
- DirectedGraph
- EmmaXmlConstants
- EmmaXmlReportParser
- FakeTestsZipFolder
- FileUtil
- FixedByteArrayOutputStream
- HprofAllocSiteParser
- IEmail.Message
- JUnit4TestFilter
- JUnitXmlParser
- KeyguardControllerState
- ListInstrumentationParser
- ListInstrumentationParser.InstrumentationTarget
- LogcatUpdaterEventParser
- LogcatUpdaterEventParser.AsyncUpdaterEvent
- MultiMap
- NullUtil
- Pair
- ProcessInfo
- PropertyChanger
- PsParser
- QuotationAwareTokenizer
- RegexTrie
- RegexTrie.CompPattern
- RunUtil
- RunUtil.RunnableResult
- SerializationUtil
- SimplePerfResult
- SimplePerfStatResultParser
- SimplePerfUtil
- SimpleStats
- SizeLimitedOutputStream
- StreamUtil
- StringEscapeUtils
- SubprocessEventHelper
- SubprocessEventHelper.BaseTestEventInfo
- SubprocessEventHelper.FailedTestEventInfo
- SubprocessEventHelper.InvocationFailedEventInfo
- SubprocessEventHelper.InvocationStartedEventInfo
- SubprocessEventHelper.TestEndedEventInfo
- SubprocessEventHelper.TestLogEventInfo
- SubprocessEventHelper.TestRunEndedEventInfo
- SubprocessEventHelper.TestRunFailedEventInfo
- SubprocessEventHelper.TestRunStartedEventInfo
- SubprocessEventHelper.TestStartedEventInfo
- SubprocessTestResultsParser
- SubprocessTestResultsParser.StatusKeys
- SystemUtil
- TableFormatter
- TarUtil
- TestFilterHelper
- TestLoader
- TimeUtil
- TimeVal
- UniqueMultiMap
- VersionParser
- ZipCompressionStrategy
- ZipUtil
- ZipUtil2
Enums
Exceptions