public class SelectByContentId extends java.lang.Object implements PartSelector
PartSelector
implementation that selects by the Content-Id header of the MimeBodyPart.In the adapter configuration file this class is aliased as mime-select-by-content-id which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
SelectByContentId() |
SelectByContentId(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentId() |
javax.mail.internet.MimeBodyPart |
select(BodyPartIterator in)
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 |
setContentId(java.lang.String i)
The Content-Id of the MimeBodyPart to select.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
select
public SelectByContentId()
public SelectByContentId(java.lang.String s)
public javax.mail.internet.MimeBodyPart select(BodyPartIterator in) 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 java.lang.String getContentId()
public void setContentId(java.lang.String i)
i
- the position to set, count