org.ow2.petals.component.framework.message
Class ExchangeImpl

java.lang.Object
  extended by org.ow2.petals.component.framework.message.ExchangeImpl
All Implemented Interfaces:
org.ow2.petals.component.framework.api.message.Exchange

public class ExchangeImpl
extends java.lang.Object
implements org.ow2.petals.component.framework.api.message.Exchange

This is a Message Exchange Wrapper. The "in" and "out" normalized message are cached into this class, authorizing the reset of these message. Can be use by the Component Framework interceptors. TODO: cache the fault

Since:
3.0
Author:
Adrien LOUIS - EBMWebSourcing, ofabre - EBM WebSourcing, chamerling - EBM WebSourcing

Field Summary
 
Fields inherited from interface org.ow2.petals.component.framework.api.message.Exchange
DEFAULT_FAULT_QNAME, FAULT_MESSAGE_NAME, IN_MESSAGE_NAME, OUT_MESSAGE_NAME, PROPERTY_PROVIDER_LINKTYPE
 
Constructor Summary
ExchangeImpl(javax.jbi.messaging.MessageExchange exchange)
          Creates a new instance of ExchangeImpl
 
Method Summary
 void addInMessageAttachment(java.lang.String id, javax.activation.DataHandler content)
           
 void addOutMessageAttachment(java.lang.String id, javax.activation.DataHandler content)
           
protected  void checkPatternMatching(java.lang.String name)
          Check that the exchange MEP allows the specified reference.
protected  void checkRoleMatching(java.lang.String name)
          Check that the Role allows the specified reference.
 javax.jbi.messaging.Fault createFault()
           
 javax.jbi.messaging.NormalizedMessage createMessage()
          Creates a message.
 javax.jbi.servicedesc.ServiceEndpoint getEndpoint()
           
 java.lang.String getEndpointName()
           
 java.lang.Exception getError()
           
 java.lang.String getExchangeId()
           
 java.net.URI getExchangePattern()
           
 javax.jbi.messaging.Fault getFault()
           
 javax.jbi.messaging.FlowAttributes getFlowAttributes()
           
 java.util.Map<javax.xml.namespace.QName,java.lang.String> getInAddressing()
           
 javax.jbi.messaging.NormalizedMessage getInMessage()
           
 javax.activation.DataHandler getInMessageAttachment(java.lang.String name)
           
 java.util.Set<java.lang.String> getInMessageAttachmentNames()
           
 java.util.Set<javax.activation.DataHandler> getInMessageAttachments()
           
 org.w3c.dom.Document getInMessageContentAsDocument()
           
 org.w3c.dom.Document getInMessageContentAsDocument(boolean forkSource)
           
 javax.xml.transform.Source getInMessageContentAsSource()
           
 java.lang.Object getInMessageProperty(java.lang.String name)
           
 java.util.Set<java.lang.String> getInMessagePropertyNames()
           
 javax.security.auth.Subject getInSubject()
           
 javax.xml.namespace.QName getInterfaceName()
           
 javax.jbi.messaging.MessageExchange getMessageExchange()
          Return the wrapped Message Exchange.
 javax.xml.namespace.QName getOperation()
           
 java.lang.String getOperationName()
           
 javax.jbi.messaging.NormalizedMessage getOutMessage()
           
 javax.activation.DataHandler getOutMessageAttachment(java.lang.String name)
           
 java.util.Set<java.lang.String> getOutMessageAttachmentNames()
           
 java.util.Set<javax.activation.DataHandler> getOutMessageAttachments()
           
 org.w3c.dom.Document getOutMessageContentAsDocument()
           
 org.w3c.dom.Document getOutMessageContentAsDocument(boolean forkSource)
           
 javax.xml.transform.Source getOutMessageContentAsSource()
           
 java.lang.Object getOutMessageProperty(java.lang.String name)
           
 java.util.Set<?> getOutMessagePropertyNames()
           
 javax.security.auth.Subject getOutSubject()
           
 java.net.URI getPattern()
           
 java.lang.Object getProperty(java.lang.String name)
           
 java.util.Set<?> getPropertyNames()
           
 javax.jbi.messaging.MessageExchange.Role getRole()
           
 javax.xml.namespace.QName getService()
           
 javax.jbi.messaging.ExchangeStatus getStatus()
           
 boolean isActiveStatus()
           
 boolean isConsumerRole()
           
 boolean isDoneStatus()
           
 boolean isErrorStatus()
           
 boolean isInMessage()
           
 boolean isInOnlyPattern()
           
 boolean isInOptionalOutPattern()
           
 boolean isInOutPattern()
           
 boolean isOutMessage()
           
 boolean isProviderRole()
           
 boolean isRobustInOnlyPattern()
           
 boolean isTransacted()
           
 void setActiveStatus()
           
 void setCheckRole(boolean checkRole)
           
 void setDoneStatus()
           
 void setEndpoint(javax.jbi.servicedesc.ServiceEndpoint endpoint)
           
 void setError(java.lang.Exception exception)
           
 void setErrorStatus()
           
 void setFault(javax.jbi.messaging.Fault fault)
           
 void setFault(java.lang.Throwable e)
           
 void setInAddressing(java.util.Map<javax.xml.namespace.QName,java.lang.String> addressing)
           
 void setInMessage(javax.jbi.messaging.NormalizedMessage msg)
           
 void setInMessageAttachment(java.lang.String name, javax.activation.DataHandler attachment)
           
 void setInMessageAttachments(java.util.Map<java.lang.String,javax.activation.DataHandler> attachments)
           
 void setInMessageContent(org.w3c.dom.Document inContent)
           
 void setInMessageContent(java.io.InputStream inContent)
           
 void setInMessageContent(javax.xml.transform.Source inContent)
           
 void setInMessageProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
           
 void setInMessageProperty(java.lang.String name, java.lang.Object value)
           
 void setInSubject(javax.security.auth.Subject subject)
           
 void setInterfaceName(javax.xml.namespace.QName interfaceName)
           
 void setOperation(javax.xml.namespace.QName name)
           
 void setOutMessage(javax.jbi.messaging.NormalizedMessage msg)
           
 void setOutMessageAttachment(java.lang.String name, javax.activation.DataHandler attachment)
           
 void setOutMessageAttachments(java.util.Map<java.lang.String,javax.activation.DataHandler> attachments)
           
 void setOutMessageContent(org.w3c.dom.Document outContent)
           
 void setOutMessageContent(java.io.InputStream outContent)
           
 void setOutMessageContent(javax.xml.transform.Source outContent)
           
 void setOutMessageProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
           
 void setOutMessageProperty(java.lang.String name, java.lang.Object value)
           
 void setOutSubject(javax.security.auth.Subject subject)
           
 void setProperty(java.lang.String name, java.lang.Object obj)
           
 void setService(javax.xml.namespace.QName service)
           
 void setStatus(javax.jbi.messaging.ExchangeStatus status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExchangeImpl

public ExchangeImpl(javax.jbi.messaging.MessageExchange exchange)
Creates a new instance of ExchangeImpl

Parameters:
exchange -
Method Detail

addInMessageAttachment

public void addInMessageAttachment(java.lang.String id,
                                   javax.activation.DataHandler content)
                            throws javax.jbi.messaging.MessagingException
Specified by:
addInMessageAttachment in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

addOutMessageAttachment

public void addOutMessageAttachment(java.lang.String id,
                                    javax.activation.DataHandler content)
                             throws javax.jbi.messaging.MessagingException
Specified by:
addOutMessageAttachment in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

createFault

public javax.jbi.messaging.Fault createFault()
                                      throws javax.jbi.messaging.MessagingException
Specified by:
createFault in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

createMessage

public javax.jbi.messaging.NormalizedMessage createMessage()
                                                    throws javax.jbi.messaging.MessagingException
Creates a message.

This method is not exposed by the Exchange interface.

Returns:
Throws:
javax.jbi.messaging.MessagingException

getEndpoint

public javax.jbi.servicedesc.ServiceEndpoint getEndpoint()
Specified by:
getEndpoint in interface org.ow2.petals.component.framework.api.message.Exchange

getEndpointName

public java.lang.String getEndpointName()
                                 throws javax.jbi.messaging.MessagingException
Specified by:
getEndpointName in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

getError

public java.lang.Exception getError()
Specified by:
getError in interface org.ow2.petals.component.framework.api.message.Exchange

getExchangeId

public java.lang.String getExchangeId()
Specified by:
getExchangeId in interface org.ow2.petals.component.framework.api.message.Exchange

getExchangePattern

public java.net.URI getExchangePattern()
                                throws javax.jbi.messaging.MessagingException
Specified by:
getExchangePattern in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

getFault

public javax.jbi.messaging.Fault getFault()
Specified by:
getFault in interface org.ow2.petals.component.framework.api.message.Exchange

getInAddressing

public java.util.Map<javax.xml.namespace.QName,java.lang.String> getInAddressing()
Specified by:
getInAddressing in interface org.ow2.petals.component.framework.api.message.Exchange

getInMessage

public javax.jbi.messaging.NormalizedMessage getInMessage()
Specified by:
getInMessage in interface org.ow2.petals.component.framework.api.message.Exchange

getInMessageAttachment

public javax.activation.DataHandler getInMessageAttachment(java.lang.String name)
                                                    throws javax.jbi.messaging.MessagingException
Specified by:
getInMessageAttachment in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

getInMessageAttachmentNames

public java.util.Set<java.lang.String> getInMessageAttachmentNames()
                                                            throws javax.jbi.messaging.MessagingException
Specified by:
getInMessageAttachmentNames in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

getInMessageAttachments

public java.util.Set<javax.activation.DataHandler> getInMessageAttachments()
                                                                    throws javax.jbi.messaging.MessagingException
Specified by:
getInMessageAttachments in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

getInMessageContentAsDocument

public org.w3c.dom.Document getInMessageContentAsDocument()
                                                   throws javax.jbi.messaging.MessagingException
Specified by:
getInMessageContentAsDocument in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

getInMessageContentAsDocument

public org.w3c.dom.Document getInMessageContentAsDocument(boolean forkSource)
                                                   throws javax.jbi.messaging.MessagingException
Specified by:
getInMessageContentAsDocument in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

getInMessageContentAsSource

public javax.xml.transform.Source getInMessageContentAsSource()
                                                       throws javax.jbi.messaging.MessagingException
Specified by:
getInMessageContentAsSource in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

getInMessageProperty

public java.lang.Object getInMessageProperty(java.lang.String name)
                                      throws javax.jbi.messaging.MessagingException
Specified by:
getInMessageProperty in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

getInMessagePropertyNames

public java.util.Set<java.lang.String> getInMessagePropertyNames()
                                                          throws javax.jbi.messaging.MessagingException
Specified by:
getInMessagePropertyNames in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

getInSubject

public javax.security.auth.Subject getInSubject()
                                         throws javax.jbi.messaging.MessagingException
Specified by:
getInSubject in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

getInterfaceName

public javax.xml.namespace.QName getInterfaceName()
Specified by:
getInterfaceName in interface org.ow2.petals.component.framework.api.message.Exchange

getMessageExchange

public javax.jbi.messaging.MessageExchange getMessageExchange()
                                                       throws javax.jbi.messaging.MessagingException
Return the wrapped Message Exchange.

This method is not exposed by the Exchange interface.

Returns:
the wrapped Message Exchange
Throws:
javax.jbi.messaging.MessagingException

getOperation

public javax.xml.namespace.QName getOperation()
Specified by:
getOperation in interface org.ow2.petals.component.framework.api.message.Exchange

getOperationName

public java.lang.String getOperationName()
Specified by:
getOperationName in interface org.ow2.petals.component.framework.api.message.Exchange

getOutMessage

public javax.jbi.messaging.NormalizedMessage getOutMessage()
Specified by:
getOutMessage in interface org.ow2.petals.component.framework.api.message.Exchange

getOutMessageAttachment

public javax.activation.DataHandler getOutMessageAttachment(java.lang.String name)
                                                     throws javax.jbi.messaging.MessagingException
Specified by:
getOutMessageAttachment in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

getOutMessageAttachmentNames

public java.util.Set<java.lang.String> getOutMessageAttachmentNames()
                                                             throws javax.jbi.messaging.MessagingException
Specified by:
getOutMessageAttachmentNames in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

getOutMessageAttachments

public java.util.Set<javax.activation.DataHandler> getOutMessageAttachments()
                                                                     throws javax.jbi.messaging.MessagingException
Specified by:
getOutMessageAttachments in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

getOutMessageContentAsDocument

public org.w3c.dom.Document getOutMessageContentAsDocument()
                                                    throws javax.jbi.messaging.MessagingException
Specified by:
getOutMessageContentAsDocument in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

getOutMessageContentAsDocument

public org.w3c.dom.Document getOutMessageContentAsDocument(boolean forkSource)
                                                    throws javax.jbi.messaging.MessagingException
Specified by:
getOutMessageContentAsDocument in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

getOutMessageContentAsSource

public javax.xml.transform.Source getOutMessageContentAsSource()
                                                        throws javax.jbi.messaging.MessagingException
Specified by:
getOutMessageContentAsSource in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

getOutMessageProperty

public java.lang.Object getOutMessageProperty(java.lang.String name)
                                       throws javax.jbi.messaging.MessagingException
Specified by:
getOutMessageProperty in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

getOutMessagePropertyNames

public java.util.Set<?> getOutMessagePropertyNames()
                                            throws javax.jbi.messaging.MessagingException
Specified by:
getOutMessagePropertyNames in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

getOutSubject

public javax.security.auth.Subject getOutSubject()
                                          throws javax.jbi.messaging.MessagingException
Specified by:
getOutSubject in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

getPattern

public java.net.URI getPattern()
Specified by:
getPattern in interface org.ow2.petals.component.framework.api.message.Exchange

getProperty

public java.lang.Object getProperty(java.lang.String name)
Specified by:
getProperty in interface org.ow2.petals.component.framework.api.message.Exchange

getPropertyNames

public java.util.Set<?> getPropertyNames()
Specified by:
getPropertyNames in interface org.ow2.petals.component.framework.api.message.Exchange

getRole

public javax.jbi.messaging.MessageExchange.Role getRole()
Specified by:
getRole in interface org.ow2.petals.component.framework.api.message.Exchange

getService

public javax.xml.namespace.QName getService()
Specified by:
getService in interface org.ow2.petals.component.framework.api.message.Exchange

getStatus

public javax.jbi.messaging.ExchangeStatus getStatus()
Specified by:
getStatus in interface org.ow2.petals.component.framework.api.message.Exchange

isActiveStatus

public boolean isActiveStatus()
Specified by:
isActiveStatus in interface org.ow2.petals.component.framework.api.message.Exchange

isConsumerRole

public boolean isConsumerRole()
Specified by:
isConsumerRole in interface org.ow2.petals.component.framework.api.message.Exchange

isDoneStatus

public boolean isDoneStatus()
Specified by:
isDoneStatus in interface org.ow2.petals.component.framework.api.message.Exchange

isErrorStatus

public boolean isErrorStatus()
Specified by:
isErrorStatus in interface org.ow2.petals.component.framework.api.message.Exchange

isInMessage

public boolean isInMessage()
Specified by:
isInMessage in interface org.ow2.petals.component.framework.api.message.Exchange

isInOnlyPattern

public boolean isInOnlyPattern()
Specified by:
isInOnlyPattern in interface org.ow2.petals.component.framework.api.message.Exchange

isInOptionalOutPattern

public boolean isInOptionalOutPattern()
Specified by:
isInOptionalOutPattern in interface org.ow2.petals.component.framework.api.message.Exchange

isInOutPattern

public boolean isInOutPattern()
Specified by:
isInOutPattern in interface org.ow2.petals.component.framework.api.message.Exchange

isOutMessage

public boolean isOutMessage()
Specified by:
isOutMessage in interface org.ow2.petals.component.framework.api.message.Exchange

isProviderRole

public boolean isProviderRole()
Specified by:
isProviderRole in interface org.ow2.petals.component.framework.api.message.Exchange

isRobustInOnlyPattern

public boolean isRobustInOnlyPattern()
Specified by:
isRobustInOnlyPattern in interface org.ow2.petals.component.framework.api.message.Exchange

isTransacted

public boolean isTransacted()
Specified by:
isTransacted in interface org.ow2.petals.component.framework.api.message.Exchange

setActiveStatus

public void setActiveStatus()
                     throws javax.jbi.messaging.MessagingException
Specified by:
setActiveStatus in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setCheckRole

public void setCheckRole(boolean checkRole)

setDoneStatus

public void setDoneStatus()
                   throws javax.jbi.messaging.MessagingException
Specified by:
setDoneStatus in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setEndpoint

public void setEndpoint(javax.jbi.servicedesc.ServiceEndpoint endpoint)
Specified by:
setEndpoint in interface org.ow2.petals.component.framework.api.message.Exchange

setError

public void setError(java.lang.Exception exception)
Specified by:
setError in interface org.ow2.petals.component.framework.api.message.Exchange

setErrorStatus

public void setErrorStatus()
                    throws javax.jbi.messaging.MessagingException
Specified by:
setErrorStatus in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setFault

public void setFault(javax.jbi.messaging.Fault fault)
              throws javax.jbi.messaging.MessagingException
Specified by:
setFault in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setFault

public void setFault(java.lang.Throwable e)
              throws javax.jbi.messaging.MessagingException
Specified by:
setFault in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setInAddressing

public void setInAddressing(java.util.Map<javax.xml.namespace.QName,java.lang.String> addressing)
Specified by:
setInAddressing in interface org.ow2.petals.component.framework.api.message.Exchange

setInMessage

public void setInMessage(javax.jbi.messaging.NormalizedMessage msg)
                  throws javax.jbi.messaging.MessagingException
Specified by:
setInMessage in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setInMessageAttachment

public void setInMessageAttachment(java.lang.String name,
                                   javax.activation.DataHandler attachment)
                            throws javax.jbi.messaging.MessagingException
Specified by:
setInMessageAttachment in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setInMessageAttachments

public void setInMessageAttachments(java.util.Map<java.lang.String,javax.activation.DataHandler> attachments)
                             throws javax.jbi.messaging.MessagingException
Specified by:
setInMessageAttachments in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setInMessageContent

public void setInMessageContent(org.w3c.dom.Document inContent)
                         throws javax.jbi.messaging.MessagingException
Specified by:
setInMessageContent in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setInMessageContent

public void setInMessageContent(java.io.InputStream inContent)
                         throws javax.jbi.messaging.MessagingException
Specified by:
setInMessageContent in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setInMessageContent

public void setInMessageContent(javax.xml.transform.Source inContent)
                         throws javax.jbi.messaging.MessagingException
Specified by:
setInMessageContent in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setInMessageProperties

public void setInMessageProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
                            throws javax.jbi.messaging.MessagingException
Specified by:
setInMessageProperties in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setInMessageProperty

public void setInMessageProperty(java.lang.String name,
                                 java.lang.Object value)
                          throws javax.jbi.messaging.MessagingException
Specified by:
setInMessageProperty in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setInSubject

public void setInSubject(javax.security.auth.Subject subject)
Specified by:
setInSubject in interface org.ow2.petals.component.framework.api.message.Exchange

setInterfaceName

public void setInterfaceName(javax.xml.namespace.QName interfaceName)
Specified by:
setInterfaceName in interface org.ow2.petals.component.framework.api.message.Exchange

setOperation

public void setOperation(javax.xml.namespace.QName name)
Specified by:
setOperation in interface org.ow2.petals.component.framework.api.message.Exchange

setOutMessage

public void setOutMessage(javax.jbi.messaging.NormalizedMessage msg)
                   throws javax.jbi.messaging.MessagingException
Specified by:
setOutMessage in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setOutMessageAttachment

public void setOutMessageAttachment(java.lang.String name,
                                    javax.activation.DataHandler attachment)
                             throws javax.jbi.messaging.MessagingException
Specified by:
setOutMessageAttachment in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setOutMessageAttachments

public void setOutMessageAttachments(java.util.Map<java.lang.String,javax.activation.DataHandler> attachments)
                              throws javax.jbi.messaging.MessagingException
Specified by:
setOutMessageAttachments in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setOutMessageContent

public void setOutMessageContent(org.w3c.dom.Document outContent)
                          throws javax.jbi.messaging.MessagingException
Specified by:
setOutMessageContent in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setOutMessageContent

public void setOutMessageContent(java.io.InputStream outContent)
                          throws javax.jbi.messaging.MessagingException
Specified by:
setOutMessageContent in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setOutMessageContent

public void setOutMessageContent(javax.xml.transform.Source outContent)
                          throws javax.jbi.messaging.MessagingException
Specified by:
setOutMessageContent in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setOutMessageProperties

public void setOutMessageProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
                             throws javax.jbi.messaging.MessagingException
Specified by:
setOutMessageProperties in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setOutMessageProperty

public void setOutMessageProperty(java.lang.String name,
                                  java.lang.Object value)
                           throws javax.jbi.messaging.MessagingException
Specified by:
setOutMessageProperty in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

setOutSubject

public void setOutSubject(javax.security.auth.Subject subject)
Specified by:
setOutSubject in interface org.ow2.petals.component.framework.api.message.Exchange

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object obj)
Specified by:
setProperty in interface org.ow2.petals.component.framework.api.message.Exchange

setService

public void setService(javax.xml.namespace.QName service)
Specified by:
setService in interface org.ow2.petals.component.framework.api.message.Exchange

setStatus

public void setStatus(javax.jbi.messaging.ExchangeStatus status)
               throws javax.jbi.messaging.MessagingException
Specified by:
setStatus in interface org.ow2.petals.component.framework.api.message.Exchange
Throws:
javax.jbi.messaging.MessagingException

checkPatternMatching

protected void checkPatternMatching(java.lang.String name)
                             throws javax.jbi.messaging.MessagingException
Check that the exchange MEP allows the specified reference. This only works for the JBI predefined MEPs. It check that reference is IN or OUT. Other reference or MEP will cause an exception

Parameters:
name -
Throws:
javax.jbi.messaging.MessagingException - the MEP does not allow the reference

checkRoleMatching

protected void checkRoleMatching(java.lang.String name)
                          throws javax.jbi.messaging.MessagingException
Check that the Role allows the specified reference. This only works for the JBI predefined MEPs. It check that reference is IN or OUT and the Role is CONSUMER or PROVIDER. Other reference will cause an exception

Parameters:
name -
Throws:
javax.jbi.messaging.MessagingException - the Role does not allow the reference

getFlowAttributes

public javax.jbi.messaging.FlowAttributes getFlowAttributes()
Specified by:
getFlowAttributes in interface org.ow2.petals.component.framework.api.message.Exchange


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.