Class NullPartSelector

java.lang.Object
com.adaptris.util.text.mime.NullPartSelector
All Implemented Interfaces:
PartSelector

public class NullPartSelector extends 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 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 the MimeMultipart.
      Specified by:
      select in interface PartSelector
      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 the BodyPartIterator
      Specified by:
      select in interface PartSelector
      Returns:
      the MimeBodyPart that should be the body, or null if no match found.
      Throws:
      javax.mail.MessagingException