org.apache.servicemix.tck.mock
Class MockMessageExchange
java.lang.Object
org.apache.servicemix.tck.mock.MockMessageExchange
- All Implemented Interfaces:
- javax.jbi.messaging.MessageExchange
- Direct Known Subclasses:
- MockExchangeFactory.MockInOnly, MockExchangeFactory.MockInOptionalOut, MockExchangeFactory.MockInOut, MockExchangeFactory.MockRobustInOnly
public class MockMessageExchange
- extends java.lang.Object
- implements javax.jbi.messaging.MessageExchange
Nested classes/interfaces inherited from interface javax.jbi.messaging.MessageExchange |
javax.jbi.messaging.MessageExchange.Role |
Fields inherited from interface javax.jbi.messaging.MessageExchange |
JTA_TRANSACTION_PROPERTY_NAME |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockMessageExchange
public MockMessageExchange()
getEndpoint
public javax.jbi.servicedesc.ServiceEndpoint getEndpoint()
- Specified by:
getEndpoint
in interface javax.jbi.messaging.MessageExchange
- Returns:
- the endpoint
setEndpoint
public void setEndpoint(javax.jbi.servicedesc.ServiceEndpoint endpoint)
- Specified by:
setEndpoint
in interface javax.jbi.messaging.MessageExchange
- Parameters:
endpoint
- the endpoint to set
getError
public java.lang.Exception getError()
- Specified by:
getError
in interface javax.jbi.messaging.MessageExchange
- Returns:
- the error
setError
public void setError(java.lang.Exception error)
- Specified by:
setError
in interface javax.jbi.messaging.MessageExchange
- Parameters:
error
- the error to set
getExchangeId
public java.lang.String getExchangeId()
- Specified by:
getExchangeId
in interface javax.jbi.messaging.MessageExchange
- Returns:
- the exchangeId
setExchangeId
public void setExchangeId(java.lang.String exchangeId)
- Parameters:
exchangeId
- the exchangeId to set
getFault
public javax.jbi.messaging.Fault getFault()
- Specified by:
getFault
in interface javax.jbi.messaging.MessageExchange
- Returns:
- the fault
setFault
public void setFault(javax.jbi.messaging.Fault fault)
- Specified by:
setFault
in interface javax.jbi.messaging.MessageExchange
- Parameters:
fault
- the fault to set
getInMessage
public javax.jbi.messaging.NormalizedMessage getInMessage()
- Returns:
- the in
setInMessage
public void setInMessage(javax.jbi.messaging.NormalizedMessage in)
- Parameters:
in
- the in to set
getInterfaceName
public javax.xml.namespace.QName getInterfaceName()
- Specified by:
getInterfaceName
in interface javax.jbi.messaging.MessageExchange
- Returns:
- the interfaceName
setInterfaceName
public void setInterfaceName(javax.xml.namespace.QName interfaceName)
- Specified by:
setInterfaceName
in interface javax.jbi.messaging.MessageExchange
- Parameters:
interfaceName
- the interfaceName to set
getOperation
public javax.xml.namespace.QName getOperation()
- Specified by:
getOperation
in interface javax.jbi.messaging.MessageExchange
- Returns:
- the operation
setOperation
public void setOperation(javax.xml.namespace.QName operation)
- Specified by:
setOperation
in interface javax.jbi.messaging.MessageExchange
- Parameters:
operation
- the operation to set
getOutMessage
public javax.jbi.messaging.NormalizedMessage getOutMessage()
- Returns:
- the out
setOutMessage
public void setOutMessage(javax.jbi.messaging.NormalizedMessage out)
- Parameters:
out
- the out to set
getPattern
public java.net.URI getPattern()
- Specified by:
getPattern
in interface javax.jbi.messaging.MessageExchange
- Returns:
- the pattern
setPattern
public void setPattern(java.net.URI pattern)
- Parameters:
pattern
- the pattern to set
getRole
public javax.jbi.messaging.MessageExchange.Role getRole()
- Specified by:
getRole
in interface javax.jbi.messaging.MessageExchange
- Returns:
- the role
setRole
public void setRole(javax.jbi.messaging.MessageExchange.Role role)
- Parameters:
role
- the role to set
getService
public javax.xml.namespace.QName getService()
- Specified by:
getService
in interface javax.jbi.messaging.MessageExchange
- Returns:
- the service
setService
public void setService(javax.xml.namespace.QName service)
- Specified by:
setService
in interface javax.jbi.messaging.MessageExchange
- Parameters:
service
- the service to set
getStatus
public javax.jbi.messaging.ExchangeStatus getStatus()
- Specified by:
getStatus
in interface javax.jbi.messaging.MessageExchange
- Returns:
- the status
setStatus
public void setStatus(javax.jbi.messaging.ExchangeStatus status)
- Specified by:
setStatus
in interface javax.jbi.messaging.MessageExchange
- Parameters:
status
- the status to set
createFault
public javax.jbi.messaging.Fault createFault()
throws javax.jbi.messaging.MessagingException
- Specified by:
createFault
in interface javax.jbi.messaging.MessageExchange
- Throws:
javax.jbi.messaging.MessagingException
createMessage
public javax.jbi.messaging.NormalizedMessage createMessage()
throws javax.jbi.messaging.MessagingException
- Specified by:
createMessage
in interface javax.jbi.messaging.MessageExchange
- Throws:
javax.jbi.messaging.MessagingException
getMessage
public javax.jbi.messaging.NormalizedMessage getMessage(java.lang.String name)
- Specified by:
getMessage
in interface javax.jbi.messaging.MessageExchange
getProperty
public java.lang.Object getProperty(java.lang.String name)
- Specified by:
getProperty
in interface javax.jbi.messaging.MessageExchange
getPropertyNames
public java.util.Set getPropertyNames()
- Specified by:
getPropertyNames
in interface javax.jbi.messaging.MessageExchange
isTransacted
public boolean isTransacted()
- Specified by:
isTransacted
in interface javax.jbi.messaging.MessageExchange
setMessage
public void setMessage(javax.jbi.messaging.NormalizedMessage msg,
java.lang.String name)
throws javax.jbi.messaging.MessagingException
- Specified by:
setMessage
in interface javax.jbi.messaging.MessageExchange
- Throws:
javax.jbi.messaging.MessagingException
setProperty
public void setProperty(java.lang.String name,
java.lang.Object obj)
- Specified by:
setProperty
in interface javax.jbi.messaging.MessageExchange
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.