Package com.adaptris.util.text.mime
Class NullPartSelector
java.lang.Object
com.adaptris.util.text.mime.NullPartSelector
- All Implemented Interfaces:
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.mail.internet.MimeBodyPart
Returns the first part of theBodyPartIterator
List<javax.mail.internet.MimeBodyPart>
select
(javax.mail.internet.MimeMultipart in) Returns all the parts in theMimeMultipart
.
-
Constructor Details
-
NullPartSelector
public NullPartSelector()
-
-
Method Details
-
select
public List<javax.mail.internet.MimeBodyPart> select(javax.mail.internet.MimeMultipart in) throws javax.mail.MessagingException Returns all the parts in theMimeMultipart
.- Specified by:
select
in interfacePartSelector
- Parameters:
in
- a MimeMultipart- Returns:
- a list of MimeBodyPart that should be the body, empty if no match found.
- Throws:
javax.mail.MessagingException
-
select
public javax.mail.internet.MimeBodyPart select(BodyPartIterator in) throws javax.mail.MessagingException Returns the first part of theBodyPartIterator
- Specified by:
select
in interfacePartSelector
- Returns:
- the MimeBodyPart that should be the body, or null if no match found.
- Throws:
javax.mail.MessagingException
-