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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.mail.internet.MimeBodyPartReturns the first part of theBodyPartIteratorList<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:
selectin 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:
selectin interfacePartSelector- Returns:
- the MimeBodyPart that should be the body, or null if no match found.
- Throws:
javax.mail.MessagingException
-