|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.component.framework.message.ExchangeImpl
public class ExchangeImpl
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
| 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 |
|---|
public ExchangeImpl(javax.jbi.messaging.MessageExchange exchange)
ExchangeImpl
exchange - | Method Detail |
|---|
public void addInMessageAttachment(java.lang.String id,
javax.activation.DataHandler content)
throws javax.jbi.messaging.MessagingException
addInMessageAttachment in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public void addOutMessageAttachment(java.lang.String id,
javax.activation.DataHandler content)
throws javax.jbi.messaging.MessagingException
addOutMessageAttachment in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public javax.jbi.messaging.Fault createFault()
throws javax.jbi.messaging.MessagingException
createFault in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public javax.jbi.messaging.NormalizedMessage createMessage()
throws javax.jbi.messaging.MessagingException
This method is not exposed by the Exchange interface.
javax.jbi.messaging.MessagingExceptionpublic javax.jbi.servicedesc.ServiceEndpoint getEndpoint()
getEndpoint in interface org.ow2.petals.component.framework.api.message.Exchange
public java.lang.String getEndpointName()
throws javax.jbi.messaging.MessagingException
getEndpointName in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingExceptionpublic java.lang.Exception getError()
getError in interface org.ow2.petals.component.framework.api.message.Exchangepublic java.lang.String getExchangeId()
getExchangeId in interface org.ow2.petals.component.framework.api.message.Exchange
public java.net.URI getExchangePattern()
throws javax.jbi.messaging.MessagingException
getExchangePattern in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingExceptionpublic javax.jbi.messaging.Fault getFault()
getFault in interface org.ow2.petals.component.framework.api.message.Exchangepublic java.util.Map<javax.xml.namespace.QName,java.lang.String> getInAddressing()
getInAddressing in interface org.ow2.petals.component.framework.api.message.Exchangepublic javax.jbi.messaging.NormalizedMessage getInMessage()
getInMessage in interface org.ow2.petals.component.framework.api.message.Exchange
public javax.activation.DataHandler getInMessageAttachment(java.lang.String name)
throws javax.jbi.messaging.MessagingException
getInMessageAttachment in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public java.util.Set<java.lang.String> getInMessageAttachmentNames()
throws javax.jbi.messaging.MessagingException
getInMessageAttachmentNames in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public java.util.Set<javax.activation.DataHandler> getInMessageAttachments()
throws javax.jbi.messaging.MessagingException
getInMessageAttachments in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public org.w3c.dom.Document getInMessageContentAsDocument()
throws javax.jbi.messaging.MessagingException
getInMessageContentAsDocument in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public org.w3c.dom.Document getInMessageContentAsDocument(boolean forkSource)
throws javax.jbi.messaging.MessagingException
getInMessageContentAsDocument in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public javax.xml.transform.Source getInMessageContentAsSource()
throws javax.jbi.messaging.MessagingException
getInMessageContentAsSource in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public java.lang.Object getInMessageProperty(java.lang.String name)
throws javax.jbi.messaging.MessagingException
getInMessageProperty in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public java.util.Set<java.lang.String> getInMessagePropertyNames()
throws javax.jbi.messaging.MessagingException
getInMessagePropertyNames in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public javax.security.auth.Subject getInSubject()
throws javax.jbi.messaging.MessagingException
getInSubject in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingExceptionpublic javax.xml.namespace.QName getInterfaceName()
getInterfaceName in interface org.ow2.petals.component.framework.api.message.Exchange
public javax.jbi.messaging.MessageExchange getMessageExchange()
throws javax.jbi.messaging.MessagingException
This method is not exposed by the Exchange interface.
javax.jbi.messaging.MessagingExceptionpublic javax.xml.namespace.QName getOperation()
getOperation in interface org.ow2.petals.component.framework.api.message.Exchangepublic java.lang.String getOperationName()
getOperationName in interface org.ow2.petals.component.framework.api.message.Exchangepublic javax.jbi.messaging.NormalizedMessage getOutMessage()
getOutMessage in interface org.ow2.petals.component.framework.api.message.Exchange
public javax.activation.DataHandler getOutMessageAttachment(java.lang.String name)
throws javax.jbi.messaging.MessagingException
getOutMessageAttachment in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public java.util.Set<java.lang.String> getOutMessageAttachmentNames()
throws javax.jbi.messaging.MessagingException
getOutMessageAttachmentNames in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public java.util.Set<javax.activation.DataHandler> getOutMessageAttachments()
throws javax.jbi.messaging.MessagingException
getOutMessageAttachments in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public org.w3c.dom.Document getOutMessageContentAsDocument()
throws javax.jbi.messaging.MessagingException
getOutMessageContentAsDocument in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public org.w3c.dom.Document getOutMessageContentAsDocument(boolean forkSource)
throws javax.jbi.messaging.MessagingException
getOutMessageContentAsDocument in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public javax.xml.transform.Source getOutMessageContentAsSource()
throws javax.jbi.messaging.MessagingException
getOutMessageContentAsSource in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public java.lang.Object getOutMessageProperty(java.lang.String name)
throws javax.jbi.messaging.MessagingException
getOutMessageProperty in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public java.util.Set<?> getOutMessagePropertyNames()
throws javax.jbi.messaging.MessagingException
getOutMessagePropertyNames in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public javax.security.auth.Subject getOutSubject()
throws javax.jbi.messaging.MessagingException
getOutSubject in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingExceptionpublic java.net.URI getPattern()
getPattern in interface org.ow2.petals.component.framework.api.message.Exchangepublic java.lang.Object getProperty(java.lang.String name)
getProperty in interface org.ow2.petals.component.framework.api.message.Exchangepublic java.util.Set<?> getPropertyNames()
getPropertyNames in interface org.ow2.petals.component.framework.api.message.Exchangepublic javax.jbi.messaging.MessageExchange.Role getRole()
getRole in interface org.ow2.petals.component.framework.api.message.Exchangepublic javax.xml.namespace.QName getService()
getService in interface org.ow2.petals.component.framework.api.message.Exchangepublic javax.jbi.messaging.ExchangeStatus getStatus()
getStatus in interface org.ow2.petals.component.framework.api.message.Exchangepublic boolean isActiveStatus()
isActiveStatus in interface org.ow2.petals.component.framework.api.message.Exchangepublic boolean isConsumerRole()
isConsumerRole in interface org.ow2.petals.component.framework.api.message.Exchangepublic boolean isDoneStatus()
isDoneStatus in interface org.ow2.petals.component.framework.api.message.Exchangepublic boolean isErrorStatus()
isErrorStatus in interface org.ow2.petals.component.framework.api.message.Exchangepublic boolean isInMessage()
isInMessage in interface org.ow2.petals.component.framework.api.message.Exchangepublic boolean isInOnlyPattern()
isInOnlyPattern in interface org.ow2.petals.component.framework.api.message.Exchangepublic boolean isInOptionalOutPattern()
isInOptionalOutPattern in interface org.ow2.petals.component.framework.api.message.Exchangepublic boolean isInOutPattern()
isInOutPattern in interface org.ow2.petals.component.framework.api.message.Exchangepublic boolean isOutMessage()
isOutMessage in interface org.ow2.petals.component.framework.api.message.Exchangepublic boolean isProviderRole()
isProviderRole in interface org.ow2.petals.component.framework.api.message.Exchangepublic boolean isRobustInOnlyPattern()
isRobustInOnlyPattern in interface org.ow2.petals.component.framework.api.message.Exchangepublic boolean isTransacted()
isTransacted in interface org.ow2.petals.component.framework.api.message.Exchange
public void setActiveStatus()
throws javax.jbi.messaging.MessagingException
setActiveStatus in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingExceptionpublic void setCheckRole(boolean checkRole)
public void setDoneStatus()
throws javax.jbi.messaging.MessagingException
setDoneStatus in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingExceptionpublic void setEndpoint(javax.jbi.servicedesc.ServiceEndpoint endpoint)
setEndpoint in interface org.ow2.petals.component.framework.api.message.Exchangepublic void setError(java.lang.Exception exception)
setError in interface org.ow2.petals.component.framework.api.message.Exchange
public void setErrorStatus()
throws javax.jbi.messaging.MessagingException
setErrorStatus in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public void setFault(javax.jbi.messaging.Fault fault)
throws javax.jbi.messaging.MessagingException
setFault in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public void setFault(java.lang.Throwable e)
throws javax.jbi.messaging.MessagingException
setFault in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingExceptionpublic void setInAddressing(java.util.Map<javax.xml.namespace.QName,java.lang.String> addressing)
setInAddressing in interface org.ow2.petals.component.framework.api.message.Exchange
public void setInMessage(javax.jbi.messaging.NormalizedMessage msg)
throws javax.jbi.messaging.MessagingException
setInMessage in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public void setInMessageAttachment(java.lang.String name,
javax.activation.DataHandler attachment)
throws javax.jbi.messaging.MessagingException
setInMessageAttachment in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public void setInMessageAttachments(java.util.Map<java.lang.String,javax.activation.DataHandler> attachments)
throws javax.jbi.messaging.MessagingException
setInMessageAttachments in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public void setInMessageContent(org.w3c.dom.Document inContent)
throws javax.jbi.messaging.MessagingException
setInMessageContent in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public void setInMessageContent(java.io.InputStream inContent)
throws javax.jbi.messaging.MessagingException
setInMessageContent in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public void setInMessageContent(javax.xml.transform.Source inContent)
throws javax.jbi.messaging.MessagingException
setInMessageContent in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public void setInMessageProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
throws javax.jbi.messaging.MessagingException
setInMessageProperties in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public void setInMessageProperty(java.lang.String name,
java.lang.Object value)
throws javax.jbi.messaging.MessagingException
setInMessageProperty in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingExceptionpublic void setInSubject(javax.security.auth.Subject subject)
setInSubject in interface org.ow2.petals.component.framework.api.message.Exchangepublic void setInterfaceName(javax.xml.namespace.QName interfaceName)
setInterfaceName in interface org.ow2.petals.component.framework.api.message.Exchangepublic void setOperation(javax.xml.namespace.QName name)
setOperation in interface org.ow2.petals.component.framework.api.message.Exchange
public void setOutMessage(javax.jbi.messaging.NormalizedMessage msg)
throws javax.jbi.messaging.MessagingException
setOutMessage in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public void setOutMessageAttachment(java.lang.String name,
javax.activation.DataHandler attachment)
throws javax.jbi.messaging.MessagingException
setOutMessageAttachment in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public void setOutMessageAttachments(java.util.Map<java.lang.String,javax.activation.DataHandler> attachments)
throws javax.jbi.messaging.MessagingException
setOutMessageAttachments in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public void setOutMessageContent(org.w3c.dom.Document outContent)
throws javax.jbi.messaging.MessagingException
setOutMessageContent in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public void setOutMessageContent(java.io.InputStream outContent)
throws javax.jbi.messaging.MessagingException
setOutMessageContent in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public void setOutMessageContent(javax.xml.transform.Source outContent)
throws javax.jbi.messaging.MessagingException
setOutMessageContent in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public void setOutMessageProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
throws javax.jbi.messaging.MessagingException
setOutMessageProperties in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
public void setOutMessageProperty(java.lang.String name,
java.lang.Object value)
throws javax.jbi.messaging.MessagingException
setOutMessageProperty in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingExceptionpublic void setOutSubject(javax.security.auth.Subject subject)
setOutSubject in interface org.ow2.petals.component.framework.api.message.Exchange
public void setProperty(java.lang.String name,
java.lang.Object obj)
setProperty in interface org.ow2.petals.component.framework.api.message.Exchangepublic void setService(javax.xml.namespace.QName service)
setService in interface org.ow2.petals.component.framework.api.message.Exchange
public void setStatus(javax.jbi.messaging.ExchangeStatus status)
throws javax.jbi.messaging.MessagingException
setStatus in interface org.ow2.petals.component.framework.api.message.Exchangejavax.jbi.messaging.MessagingException
protected void checkPatternMatching(java.lang.String name)
throws javax.jbi.messaging.MessagingException
name -
javax.jbi.messaging.MessagingException - the MEP does not allow the reference
protected void checkRoleMatching(java.lang.String name)
throws javax.jbi.messaging.MessagingException
name -
javax.jbi.messaging.MessagingException - the Role does not allow the referencepublic javax.jbi.messaging.FlowAttributes getFlowAttributes()
getFlowAttributes in interface org.ow2.petals.component.framework.api.message.Exchange
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||