|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Transformer
Transformer interface for outbound mail bridges. For each message, the bridge calls "setMessage" with the JMS message. Thereafter it calls "getContent", "getNumberAttachments". For each attachment it calls "getAttachment" and "getAttachmentFilename". The index starts at 0.
| Method Summary | |
|---|---|
javax.activation.DataSource |
getAttachment(int index)
Returns a javax.activation.DataSource object
to access the attachment. |
java.lang.String |
getAttachmentFilename(int index)
Returns the filename of the attachment. |
java.lang.String |
getContent()
Returns the content. |
int |
getNumberAttachments()
Returns the number of attachments. |
void |
setMessage(MessageImpl message)
Sets the JMS message. |
| Method Detail |
|---|
void setMessage(MessageImpl message)
throws java.lang.Exception
message - JMS message
java.lang.Exception - on error, e.g. wrong message type
java.lang.String getContent()
throws java.lang.Exception
java.lang.Exception - on error
int getNumberAttachments()
throws java.lang.Exception
java.lang.Exception - on error
javax.activation.DataSource getAttachment(int index)
throws java.lang.Exception
javax.activation.DataSource object
to access the attachment. See the JAF framework for details.
index - attachment index, starts at 0
java.lang.Exception - on error
java.lang.String getAttachmentFilename(int index)
throws java.lang.Exception
index - attachment index, starts at 0
java.lang.Exception - on error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||