|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.se.eip.patterns.PatternHelper
public class PatternHelper
| Constructor Summary | |
|---|---|
PatternHelper()
|
|
| Method Summary | |
|---|---|
static org.w3c.dom.Document |
aggregateContent(org.w3c.dom.Document document,
org.w3c.dom.Document aggregatedDocument,
java.lang.String contentName,
java.lang.String namespace)
Aggregate the item XML content into the global AggregateDocument |
static org.w3c.dom.Document |
aggregateContent(javax.jbi.messaging.NormalizedMessage receivedMessage,
org.w3c.dom.Document aggregatedDocument,
java.lang.String name,
java.lang.String namespace)
Aggregate the received normalized message content into the global aggregated document |
static void |
copy(javax.jbi.messaging.NormalizedMessage source,
javax.jbi.messaging.NormalizedMessage target)
Copies message's content, security, properties and attachments in another. |
static void |
copy(javax.jbi.messaging.NormalizedMessage source,
javax.jbi.messaging.NormalizedMessage target,
boolean copyContent,
boolean copySecurity,
boolean copyAttachments,
boolean copyProperties)
Copies message's properties, attachments, content and security provided, in another. |
static void |
copyAttachments(javax.jbi.messaging.NormalizedMessage sourceMessage,
javax.jbi.messaging.NormalizedMessage destMessage)
Copy the attachments. |
static void |
copyProperties(javax.jbi.messaging.NormalizedMessage sourceMessage,
javax.jbi.messaging.NormalizedMessage destMessage)
Copy the properties. |
static org.w3c.dom.Document |
createExceptionDocument(java.lang.String namespace)
Create an document for the exceptions. |
static org.w3c.dom.Document |
createResultDocument(java.lang.String namespace)
Create an document to fill with response nodes. |
static boolean |
evaluateXPathCondition(java.lang.String expression,
org.w3c.dom.Node message)
|
static org.w3c.dom.NodeList |
evaluateXPathExpressionAsNodeList(java.lang.String expression,
org.w3c.dom.Node message)
Evaluate a XPath expression |
static java.lang.String |
evaluateXPathExpressionAsString(java.lang.String expression,
org.w3c.dom.Node message)
Evaluate a XPath expression |
static java.io.InputStream |
handleStreamSource(javax.jbi.messaging.NormalizedMessage message)
Handle the streaming issue. |
static javax.jbi.messaging.NormalizedMessage |
processSentExchange(org.ow2.petals.component.framework.api.message.Exchange sentExchange,
ExchangeContext context)
Process the result of a sent exchange. - if the exchange contains an OUT, return it and close the sent exchange - if the exchange contains a FAULT, return it and close the sent exchange - if the exchange is on ERROR status, throw a JBI Exception - if the exchange is on DONE status, return a null Normalized Message |
static org.ow2.petals.component.framework.api.Message.MEPConstants |
retrievePattern(org.ow2.petals.component.framework.jbidescriptor.generated.MEPType patternShortcut)
Retrieve the MEP from the extensions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PatternHelper()
| Method Detail |
|---|
public static org.w3c.dom.Document aggregateContent(org.w3c.dom.Document document,
org.w3c.dom.Document aggregatedDocument,
java.lang.String contentName,
java.lang.String namespace)
throws javax.jbi.messaging.MessagingException
document - xml content to appendaggregateDocument - the global document in which the item is appendednamespace - The namespace of the root element
javax.jbi.messaging.MessagingException
public static org.w3c.dom.Document aggregateContent(javax.jbi.messaging.NormalizedMessage receivedMessage,
org.w3c.dom.Document aggregatedDocument,
java.lang.String name,
java.lang.String namespace)
throws org.ow2.petals.component.framework.api.exception.PEtALSCDKException,
javax.jbi.messaging.MessagingException
receivedMessage - message containing the xml content to appendaggregatedDocument - the global document in which the content is appendedname - The name of the new elementnamespace - The namespace of the new element
org.ow2.petals.component.framework.api.exception.PEtALSCDKException
javax.jbi.messaging.MessagingException
public static final void copy(javax.jbi.messaging.NormalizedMessage source,
javax.jbi.messaging.NormalizedMessage target)
throws javax.jbi.messaging.MessagingException,
org.ow2.petals.component.framework.api.exception.PEtALSCDKException
source - The NormalizedMessage source (copied)target - The NormalizedMessage target (pasted)
javax.jbi.messaging.MessagingException - error while setting attachment
org.ow2.petals.component.framework.api.exception.PEtALSCDKException - error while using PEtALS object
public static final void copy(javax.jbi.messaging.NormalizedMessage source,
javax.jbi.messaging.NormalizedMessage target,
boolean copyContent,
boolean copySecurity,
boolean copyAttachments,
boolean copyProperties)
throws javax.jbi.messaging.MessagingException,
org.ow2.petals.component.framework.api.exception.PEtALSCDKException
source - target - copyContent - Copy the content or notcopySecurity - Copy the security or notcopyAttachments - Copy the attachments or notcopyProperties - Copy the properties or not
javax.jbi.messaging.MessagingException
org.ow2.petals.component.framework.api.exception.PEtALSCDKException
public static void copyAttachments(javax.jbi.messaging.NormalizedMessage sourceMessage,
javax.jbi.messaging.NormalizedMessage destMessage)
throws org.ow2.petals.component.framework.api.exception.PEtALSCDKException,
javax.jbi.messaging.MessagingException
sourceMessage - message containing the attachmentsdestMessage -
org.ow2.petals.component.framework.api.exception.PEtALSCDKException
javax.jbi.messaging.MessagingException
public static void copyProperties(javax.jbi.messaging.NormalizedMessage sourceMessage,
javax.jbi.messaging.NormalizedMessage destMessage)
throws org.ow2.petals.component.framework.api.exception.PEtALSCDKException,
javax.jbi.messaging.MessagingException
destMessage - message containing the propertiesdestMessage -
org.ow2.petals.component.framework.api.exception.PEtALSCDKException
javax.jbi.messaging.MessagingExceptionpublic static org.w3c.dom.Document createExceptionDocument(java.lang.String namespace)
namespace - The namespace of the root element
documentpublic static org.w3c.dom.Document createResultDocument(java.lang.String namespace)
namespace - The namespace of the root element
document
public static final boolean evaluateXPathCondition(java.lang.String expression,
org.w3c.dom.Node message)
throws javax.xml.xpath.XPathExpressionException
condition - message - context -
javax.xml.xpath.XPathExpressionException
public static final org.w3c.dom.NodeList evaluateXPathExpressionAsNodeList(java.lang.String expression,
org.w3c.dom.Node message)
throws javax.xml.xpath.XPathExpressionException
expression - The XPath expression to compilemessage - The Node to evaluate
javax.xml.xpath.XPathExpressionException
public static final java.lang.String evaluateXPathExpressionAsString(java.lang.String expression,
org.w3c.dom.Node message)
throws javax.xml.xpath.XPathExpressionException
expression - The XPath expression to compilemessage - The Node to evaluate
javax.xml.xpath.XPathExpressionException
public static final java.io.InputStream handleStreamSource(javax.jbi.messaging.NormalizedMessage message)
throws javax.jbi.messaging.MessagingException
streamSource -
javax.jbi.messaging.MessagingException
public static final javax.jbi.messaging.NormalizedMessage processSentExchange(org.ow2.petals.component.framework.api.message.Exchange sentExchange,
ExchangeContext context)
throws javax.jbi.messaging.MessagingException
sentExchange - originalExchange - context - setFailure -
javax.jbi.messaging.MessagingException - An exception from the sentExchange
public static final org.ow2.petals.component.framework.api.Message.MEPConstants retrievePattern(org.ow2.petals.component.framework.jbidescriptor.generated.MEPType patternShortcut)
throws javax.jbi.messaging.MessagingException
extensions -
javax.jbi.messaging.MessagingException - MEP pattern specified in consumes extension isn't valid or if
no MEP pattern specified in extensions.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||