public class NullPartSelector extends java.lang.Object implements PartSelector
PartSelector
implementation that just selects an arbitrary part.
No guarantees are made about the behaviour of this implementation; it is simply included for completenes
In the adapter configuration file this class is aliased as mime-null-selector which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
NullPartSelector() |
Modifier and Type | Method and Description |
---|---|
javax.mail.internet.MimeBodyPart |
select(BodyPartIterator in)
Returns the first part of the
MultiPartInput |
java.util.List<javax.mail.internet.MimeBodyPart> |
select(javax.mail.internet.MimeMultipart in)
Returns all the parts in the
MimeMultipart . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
select
public java.util.List<javax.mail.internet.MimeBodyPart> select(javax.mail.internet.MimeMultipart in) throws javax.mail.MessagingException
MimeMultipart
.select
in interface PartSelector
in
- a MimeMultipartjavax.mail.MessagingException
public javax.mail.internet.MimeBodyPart select(BodyPartIterator in) throws javax.mail.MessagingException
MultiPartInput
select
in interface PartSelector
javax.mail.MessagingException