public class SelectByPosition extends java.lang.Object implements PartSelector
In the adapter configuration file this class is aliased as mime-select-by-position which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
SelectByPosition() |
SelectByPosition(int i) |
Modifier and Type | Method and Description |
---|---|
int |
getPosition() |
javax.mail.internet.MimeBodyPart |
select(BodyPartIterator m)
Select the body part that should form the AdaptrisMessage payload.
|
java.util.List<javax.mail.internet.MimeBodyPart> |
select(javax.mail.internet.MimeMultipart in)
Select the body part that should form the AdaptrisMessage payload.
|
void |
setPosition(int i)
The position of the MimeBodyPart to select within the multi part.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
select
public SelectByPosition()
public SelectByPosition(int i)
public javax.mail.internet.MimeBodyPart select(BodyPartIterator m) throws javax.mail.MessagingException
PartSelector
select
in interface PartSelector
javax.mail.MessagingException
public java.util.List<javax.mail.internet.MimeBodyPart> select(javax.mail.internet.MimeMultipart in) throws javax.mail.MessagingException
PartSelector
select
in interface PartSelector
in
- a MimeMultipartjavax.mail.MessagingException
public int getPosition()
public void setPosition(int i)
i
- the position to select, starting from 0