|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.bc.mail.MailUtil
public class MailUtil
| Constructor Summary | |
|---|---|
MailUtil()
|
|
| Method Summary | |
|---|---|
static ProvideDescriptor |
build(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Extract mail session properties from the service unit for Provide node |
static ConsumeDescriptor |
buildConsumeDescriptor(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
Extract mail session properties from the service unit for Consume node |
static ProvideDescriptor |
buildFromPayload(org.w3c.dom.Node node)
Build a descriptor by extracting all information from the associated JBI message payload. |
static ProvideDescriptor |
buildFromProperties(org.ow2.petals.component.framework.api.message.Exchange exchange,
org.w3c.dom.Node node)
Retrieve mail session properties from Normalized message properties. |
protected static void |
checkProperties(ConsumeDescriptor consumeDescriptor)
Check the properties extracted from the address URI. |
protected static void |
checkProperties(ProvideDescriptor provideDescriptor)
Check the properties extracted from the address URI. |
static boolean |
checkWsaProperties(org.ow2.petals.component.framework.api.message.Exchange exchange)
Check if the ws addressing properties are present |
static java.lang.String |
extractMailBodyFromPayload(org.w3c.dom.Node node)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MailUtil()
| Method Detail |
|---|
public static ProvideDescriptor build(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
throws javax.jbi.messaging.MessagingException,
MissingElementException
extensions - extensions associated to the given message exchange
ProvideDescriptor
javax.jbi.messaging.MessagingException
MissingElementException
public static ConsumeDescriptor buildConsumeDescriptor(org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
throws javax.jbi.messaging.MessagingException,
MissingElementException
extensions - extensions associated to the given message exchange
ConsumeDescriptor
javax.jbi.messaging.MessagingException
MissingElementException
public static ProvideDescriptor buildFromPayload(org.w3c.dom.Node node)
throws MissingElementException,
javax.jbi.messaging.MessagingException
NOTE:
Used when the component supplies its own service
node - the root node of the messsage payload
{@link - MissingElementException}
{@link - MessagingException}
MissingElementException
javax.jbi.messaging.MessagingException
public static java.lang.String extractMailBodyFromPayload(org.w3c.dom.Node node)
throws MissingElementException,
javax.jbi.messaging.MessagingException
MissingElementException
javax.jbi.messaging.MessagingException
public static ProvideDescriptor buildFromProperties(org.ow2.petals.component.framework.api.message.Exchange exchange,
org.w3c.dom.Node node)
throws MissingElementException,
javax.jbi.messaging.MessagingException
NOTE:
Used when the component supplies its own service
exchange - the message exchange used to extract propertiesnode - the root node of the messsage payload to extract mail's body
ProvideDescriptor
{@link - MissingElementException}
{@link - MessagingException}
MissingElementException
javax.jbi.messaging.MessagingExceptionpublic static boolean checkWsaProperties(org.ow2.petals.component.framework.api.message.Exchange exchange)
exchange -
MissingElementException
protected static void checkProperties(ProvideDescriptor provideDescriptor)
throws javax.jbi.messaging.MessagingException,
MissingElementException
provideDescriptor -
MissingElementException
org.ow2.petals.component.framework.api.exception.PEtALSCDKException - if a checking step failed
javax.jbi.messaging.MessagingException
protected static void checkProperties(ConsumeDescriptor consumeDescriptor)
throws javax.jbi.messaging.MessagingException,
MissingElementException
consumeDescriptor -
MissingElementException
javax.jbi.messaging.MessagingException - if a checking step failed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||