|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.jbi.messaging.ExchangePacket
public class ExchangePacket
ExchangePacket is responsible for carrying MessageExchange payloads
| Field Summary | |
|---|---|
protected boolean |
aborted
|
protected ComponentNameSpace |
destinationId
|
protected javax.jbi.servicedesc.ServiceEndpoint |
endpoint
|
protected Exception |
error
|
protected String |
exchangeId
|
protected FaultImpl |
fault
|
protected NormalizedMessageImpl |
in
|
protected QName |
interfaceName
|
protected QName |
operationName
|
protected NormalizedMessageImpl |
out
|
protected URI |
pattern
|
protected Boolean |
persistent
|
protected Map |
properties
|
protected QName |
serviceName
|
protected ComponentNameSpace |
sourceId
|
protected javax.jbi.messaging.ExchangeStatus |
status
|
protected Transaction |
transactionContext
|
| Constructor Summary | |
|---|---|
ExchangePacket()
|
|
ExchangePacket(ExchangePacket packet)
|
|
| Method Summary | |
|---|---|
ExchangePacket |
copy()
Creates a copy of the packet so it can be sent to another destination |
byte[] |
getData()
Retrieve the serialized from of this packet |
ComponentNameSpace |
getDestinationId()
|
javax.jbi.servicedesc.ServiceEndpoint |
getEndpoint()
|
Exception |
getError()
|
String |
getExchangeId()
|
javax.jbi.messaging.Fault |
getFault()
|
javax.jbi.messaging.NormalizedMessage |
getIn()
|
QName |
getInterfaceName()
|
QName |
getOperationName()
|
javax.jbi.messaging.NormalizedMessage |
getOut()
|
URI |
getPattern()
|
Boolean |
getPersistent()
|
Map |
getProperties()
|
Object |
getProperty(String name)
|
Set |
getPropertyNames()
|
QName |
getServiceName()
|
ComponentNameSpace |
getSourceId()
|
javax.jbi.messaging.ExchangeStatus |
getStatus()
|
Transaction |
getTransactionContext()
|
boolean |
isAborted()
|
void |
readExternal(ObjectInput input)
Read from a stream |
static ExchangePacket |
readPacket(byte[] data)
Deserialize an ExchangePacket. |
void |
setAborted(boolean timedOut)
|
void |
setDestinationId(ComponentNameSpace destinationId)
|
void |
setEndpoint(javax.jbi.servicedesc.ServiceEndpoint endpoint)
|
void |
setError(Exception error)
|
void |
setExchangeId(String exchangeId)
|
void |
setFault(FaultImpl fault)
|
void |
setIn(NormalizedMessageImpl in)
|
void |
setInterfaceName(QName interfaceName)
|
void |
setOperationName(QName operationName)
|
void |
setOut(NormalizedMessageImpl out)
|
void |
setPattern(URI pattern)
|
void |
setPersistent(Boolean persistent)
|
void |
setProperty(String name,
Object value)
set a named property on the exchange |
void |
setServiceName(QName serviceName)
|
void |
setSourceId(ComponentNameSpace sourceId)
|
void |
setStatus(javax.jbi.messaging.ExchangeStatus status)
|
void |
setTransactionContext(Transaction transactionContext)
|
String |
toString()
|
void |
writeExternal(ObjectOutput output)
Write to a Stream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected URI pattern
protected String exchangeId
protected ComponentNameSpace destinationId
protected ComponentNameSpace sourceId
protected javax.jbi.messaging.ExchangeStatus status
protected QName serviceName
protected QName interfaceName
protected QName operationName
protected Exception error
protected Map properties
protected NormalizedMessageImpl in
protected NormalizedMessageImpl out
protected FaultImpl fault
protected javax.jbi.servicedesc.ServiceEndpoint endpoint
protected transient Transaction transactionContext
protected Boolean persistent
protected boolean aborted
| Constructor Detail |
|---|
public ExchangePacket()
public ExchangePacket(ExchangePacket packet)
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingException| Method Detail |
|---|
public javax.jbi.servicedesc.ServiceEndpoint getEndpoint()
public void setEndpoint(javax.jbi.servicedesc.ServiceEndpoint endpoint)
endpoint - The endpoint to set.public Transaction getTransactionContext()
public void setTransactionContext(Transaction transactionContext)
transactionContext - The transactionContext to set.public QName getInterfaceName()
public void setInterfaceName(QName interfaceName)
interfaceName - The interfaceName to set.public QName getOperationName()
public void setOperationName(QName operationName)
operationName - The operationName to set.public QName getServiceName()
public void setServiceName(QName serviceName)
serviceName - The serviceName to set.public void setStatus(javax.jbi.messaging.ExchangeStatus status)
status - The status to set.public javax.jbi.messaging.ExchangeStatus getStatus()
public URI getPattern()
public void setPattern(URI pattern)
pattern - The pattern to set.public Exception getError()
public void setError(Exception error)
error - The error to set.public String getExchangeId()
public void setExchangeId(String exchangeId)
exchangeId - The exchangeId to set.public Map getProperties()
public Object getProperty(String name)
name -
public void setProperty(String name,
Object value)
name - value - public Set getPropertyNames()
public ComponentNameSpace getSourceId()
public void setSourceId(ComponentNameSpace sourceId)
sourceId - The sourceId to set.public ComponentNameSpace getDestinationId()
public void setDestinationId(ComponentNameSpace destinationId)
destinationId - The destinationId to set.public javax.jbi.messaging.Fault getFault()
public void setFault(FaultImpl fault)
fault - The fault to set.public javax.jbi.messaging.NormalizedMessage getIn()
public void setIn(NormalizedMessageImpl in)
in - The in to set.public javax.jbi.messaging.NormalizedMessage getOut()
public void setOut(NormalizedMessageImpl out)
out - The out to set.public String toString()
toString in class Object
public void writeExternal(ObjectOutput output)
throws IOException
writeExternal in interface Externalizableoutput -
IOException
public void readExternal(ObjectInput input)
throws IOException,
ClassNotFoundException
readExternal in interface Externalizableinput -
IOException
ClassNotFoundException
public ExchangePacket copy()
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingExceptionpublic Boolean getPersistent()
public void setPersistent(Boolean persistent)
public boolean isAborted()
public void setAborted(boolean timedOut)
public byte[] getData()
throws IOException
IOException
public static ExchangePacket readPacket(byte[] data)
throws IOException,
ClassNotFoundException
data - the serialized packet
IOException
ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||