|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Exchange
The MessageExchange wrapper to handle properly MessageExchange against the CDK.
| Field Summary | |
|---|---|
static QName |
DEFAULT_FAULT_QNAME
|
static String |
FAULT_MESSAGE_NAME
|
static String |
IN_MESSAGE_NAME
|
static String |
OUT_MESSAGE_NAME
|
static String |
PROPERTY_PROVIDER_LINKTYPE
|
| Method Summary | |
|---|---|
void |
addInMessageAttachment(String name,
DataHandler dataHandler)
Set In message Attachment. |
void |
addOutMessageAttachment(String name,
DataHandler dataHandler)
Set Out message Attachment. |
javax.jbi.messaging.Fault |
createFault()
|
javax.jbi.servicedesc.ServiceEndpoint |
getEndpoint()
|
String |
getEndpointName()
Get the endpoint name specified in the message exchange |
Exception |
getError()
|
String |
getExchangeId()
|
URI |
getExchangePattern()
Get the message exchange Pattern |
javax.jbi.messaging.Fault |
getFault()
get the exchange fault. |
Map<QName,String> |
getInAddressing()
Get the addressing data from the IN message. |
javax.jbi.messaging.NormalizedMessage |
getInMessage()
Extract incoming NormalizedMessage from given MessageExchange. |
DataHandler |
getInMessageAttachment(String name)
Get the "In" attachment matching the given name. |
Set<String> |
getInMessageAttachmentNames()
Get all the "In" attachment names. |
Set<DataHandler> |
getInMessageAttachments()
Get "In" attachments in a Set. |
Document |
getInMessageContentAsDocument()
Get the content of the "in" message as a DOM document. |
Document |
getInMessageContentAsDocument(boolean forkSource)
Get the content of the "in" message as a DOM document. |
Source |
getInMessageContentAsSource()
Get the content of the "in" message as a Source |
Object |
getInMessageProperty(String name)
|
Set<String> |
getInMessagePropertyNames()
|
Subject |
getInSubject()
Get "In" security subject |
QName |
getInterfaceName()
|
QName |
getOperation()
|
String |
getOperationName()
Get the operation name (local part of the operation QName) |
javax.jbi.messaging.NormalizedMessage |
getOutMessage()
Extract outgoing NormalizedMessage from given MessageExchange. |
DataHandler |
getOutMessageAttachment(String name)
Get the "Out" attachment matching the attachment name. |
Set<String> |
getOutMessageAttachmentNames()
Get all the "Out" attachment names. |
Set<DataHandler> |
getOutMessageAttachments()
Get all the "Out" attachments in a Set. |
Document |
getOutMessageContentAsDocument()
Get the content of the "out" message as a DOM document. |
Document |
getOutMessageContentAsDocument(boolean forkSource)
Get the content of the "out" message as a DOM document. |
Source |
getOutMessageContentAsSource()
Get the content of the "out" message as a Source |
Object |
getOutMessageProperty(String name)
|
Set<?> |
getOutMessagePropertyNames()
|
Subject |
getOutSubject()
Get "Out" security subject |
URI |
getPattern()
|
Object |
getProperty(String name)
|
Set<?> |
getPropertyNames()
|
javax.jbi.messaging.MessageExchange.Role |
getRole()
|
QName |
getService()
|
javax.jbi.messaging.ExchangeStatus |
getStatus()
|
boolean |
isActiveStatus()
Test if the message status is ACTIVE |
boolean |
isConsumerRole()
|
boolean |
isDoneStatus()
Test if the message status is DONE |
boolean |
isErrorStatus()
Test if the message status is ERROR |
boolean |
isInMessage()
True if an In message is set on the MessageExchange false otherwise |
boolean |
isInOnlyPattern()
|
boolean |
isInOptionalOutPattern()
|
boolean |
isInOutPattern()
|
boolean |
isOutMessage()
True if an Out message is set on the MessageExchange false otherwise |
boolean |
isProviderRole()
|
boolean |
isRobustInOnlyPattern()
|
boolean |
isTransacted()
|
void |
setActiveStatus()
Set the message exchange status to ACTIVE |
void |
setDoneStatus()
Set the message exchange status to DONE |
void |
setEndpoint(javax.jbi.servicedesc.ServiceEndpoint endpoint)
|
void |
setError(Exception error)
Put the given exception as Error part of the message exchange. |
void |
setErrorStatus()
Set the message exchange status to Error |
void |
setFault(javax.jbi.messaging.Fault fault)
|
void |
setFault(Throwable e)
Create a Fault with the given Exception and set it in the
MessageExchange |
void |
setInAddressing(Map<QName,String> map)
Set the addressing information in the IN message. |
void |
setInMessage(javax.jbi.messaging.NormalizedMessage msg)
Set the input message |
void |
setInMessageAttachment(String name,
DataHandler attachement)
Put the attachment in the "out" message. |
void |
setInMessageAttachments(Map<String,DataHandler> attachements)
Put a Map of attachments in the out message of the message exchange. |
void |
setInMessageContent(Document inContent)
Put a Source object in the in message of the message exchange. |
void |
setInMessageContent(InputStream inContent)
Put a String object in the in message of the message exchange. |
void |
setInMessageContent(Source inContent)
Put a Source object in the in message of the message exchange. |
void |
setInMessageProperties(Map<String,Object> properties)
|
void |
setInMessageProperty(String name,
Object value)
|
void |
setInSubject(Subject subject)
Set "In" security subject. |
void |
setInterfaceName(QName interfaceName)
Set the target interface name to invoke the service |
void |
setOperation(QName name)
Set the message operation |
void |
setOutMessage(javax.jbi.messaging.NormalizedMessage msg)
Set the output message |
void |
setOutMessageAttachment(String name,
DataHandler attachment)
Put the attachment in the "out" message. |
void |
setOutMessageAttachments(Map<String,DataHandler> attachements)
Put a Map of attachments in the "out" message. |
void |
setOutMessageContent(Document outContent)
Put a Source object in the out message of the message exchange. |
void |
setOutMessageContent(InputStream inContent)
Put a String object in the in message of the message exchange. |
void |
setOutMessageContent(Source outContent)
Put a Source object in the out message of the message exchange. |
void |
setOutMessageProperties(Map<String,Object> properties)
|
void |
setOutMessageProperty(String name,
Object value)
|
void |
setOutSubject(Subject subject)
Set Out security subject. |
void |
setProperty(String name,
Object obj)
|
void |
setService(QName service)
|
void |
setStatus(javax.jbi.messaging.ExchangeStatus status)
|
| Field Detail |
|---|
static final QName DEFAULT_FAULT_QNAME
static final String FAULT_MESSAGE_NAME
static final String IN_MESSAGE_NAME
static final String OUT_MESSAGE_NAME
static final String PROPERTY_PROVIDER_LINKTYPE
| Method Detail |
|---|
void addInMessageAttachment(String name,
DataHandler dataHandler)
throws javax.jbi.messaging.MessagingException
name - dataHandler -
javax.jbi.messaging.MessagingException
void addOutMessageAttachment(String name,
DataHandler dataHandler)
throws javax.jbi.messaging.MessagingException
name - dataHandler -
javax.jbi.messaging.MessagingException
javax.jbi.messaging.Fault createFault()
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingExceptionjavax.jbi.servicedesc.ServiceEndpoint getEndpoint()
String getEndpointName()
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingException - if no Endpoint is setException getError()
String getExchangeId()
URI getExchangePattern()
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingException - if no message exchange pattern is setjavax.jbi.messaging.Fault getFault()
Map<QName,String> getInAddressing()
Constants.Addressing), value is the URL
as String...
javax.jbi.messaging.NormalizedMessage getInMessage()
DataHandler getInMessageAttachment(String name)
throws javax.jbi.messaging.MessagingException
exchange -
javax.jbi.messaging.MessagingException
Set<String> getInMessageAttachmentNames()
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingException
Set<DataHandler> getInMessageAttachments()
throws javax.jbi.messaging.MessagingException
Set.
exchange -
javax.jbi.messaging.MessagingException
Document getInMessageContentAsDocument()
throws javax.jbi.messaging.MessagingException
Source is a Stream or Document, a fork is
processed, which makes the Source still available, but can
decreases the performance.
javax.jbi.messaging.MessagingException - if error occurred during conversion of the Source or if "in"
message is null
Document getInMessageContentAsDocument(boolean forkSource)
throws javax.jbi.messaging.MessagingException
Source is a Stream or Document and forkSource is true, a fork is processed, which makes the
Source still available, but can decreases the performance.
javax.jbi.messaging.MessagingException - if error occurred during conversion of the Source or if "in"
message is null
Source getInMessageContentAsSource()
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingException - if "in" message is null
Object getInMessageProperty(String name)
throws javax.jbi.messaging.MessagingException
name -
javax.jbi.messaging.MessagingException
Set<String> getInMessagePropertyNames()
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingException
Subject getInSubject()
throws javax.jbi.messaging.MessagingException
null if no subject
javax.jbi.messaging.MessagingExceptionQName getInterfaceName()
QName getOperation()
String getOperationName()
javax.jbi.messaging.NormalizedMessage getOutMessage()
DataHandler getOutMessageAttachment(String name)
throws javax.jbi.messaging.MessagingException
exchange -
javax.jbi.messaging.MessagingException
Set<String> getOutMessageAttachmentNames()
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingException
Set<DataHandler> getOutMessageAttachments()
throws javax.jbi.messaging.MessagingException
Set.
exchange -
javax.jbi.messaging.MessagingException
Document getOutMessageContentAsDocument()
throws javax.jbi.messaging.MessagingException
Source is a Stream or Document, a fork is
processed, which makes the Source still available, but can
decreases the performance.
javax.jbi.messaging.MessagingException - if error occurred during conversion of the Source or if "in"
message is null
Document getOutMessageContentAsDocument(boolean forkSource)
throws javax.jbi.messaging.MessagingException
Source is a Stream or Document and forkSource is true, a fork is processed, which makes the
Source still available, but can decreases the performance.
javax.jbi.messaging.MessagingException - if error occurred during conversion of the Source or if "in"
message is null
Source getOutMessageContentAsSource()
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingException - if "out" message is null
Object getOutMessageProperty(String name)
throws javax.jbi.messaging.MessagingException
name -
javax.jbi.messaging.MessagingException
Set<?> getOutMessagePropertyNames()
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingException
Subject getOutSubject()
throws javax.jbi.messaging.MessagingException
null if no subject
javax.jbi.messaging.MessagingExceptionURI getPattern()
Object getProperty(String name)
name -
Set<?> getPropertyNames()
javax.jbi.messaging.MessageExchange.Role getRole()
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()
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingException
void setDoneStatus()
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingExceptionvoid setEndpoint(javax.jbi.servicedesc.ServiceEndpoint endpoint)
endpoint - void setError(Exception error)
void setErrorStatus()
throws javax.jbi.messaging.MessagingException
javax.jbi.messaging.MessagingException
void setFault(javax.jbi.messaging.Fault fault)
throws javax.jbi.messaging.MessagingException
fault -
javax.jbi.messaging.MessagingException
void setFault(Throwable e)
throws javax.jbi.messaging.MessagingException
Fault with the given Exception and set it in the
MessageExchange
e - the Throwable to transform in Fault
javax.jbi.messaging.MessagingExceptionvoid setInAddressing(Map<QName,String> map)
Constants.Addressing and values are
the URL as String. If the NormalizedMessage already contains the
addressing data, they will be overrided by the input map. If No
addressing data is available in the message, the input map will be the
addressing data.
map -
void setInMessage(javax.jbi.messaging.NormalizedMessage msg)
throws javax.jbi.messaging.MessagingException
msg -
javax.jbi.messaging.MessagingException
void setInMessageAttachment(String name,
DataHandler attachement)
throws javax.jbi.messaging.MessagingException
name - attachement -
javax.jbi.messaging.MessagingException
void setInMessageAttachments(Map<String,DataHandler> attachements)
throws javax.jbi.messaging.MessagingException
attachements - the attachments to put in the out message
javax.jbi.messaging.MessagingException - if error occurred during out message creation
void setInMessageContent(Document inContent)
throws javax.jbi.messaging.MessagingException
inContent - the DOM Document content to put in the in message
javax.jbi.messaging.MessagingException - if error occurred during in message creation
void setInMessageContent(InputStream inContent)
throws javax.jbi.messaging.MessagingException
inContent - the Source content to put in the in message
javax.jbi.messaging.MessagingException - if error occurred during in message creation
void setInMessageContent(Source inContent)
throws javax.jbi.messaging.MessagingException
inContent - the Source content to put in the in message
javax.jbi.messaging.MessagingException - if error occurred during in message creation
void setInMessageProperties(Map<String,Object> properties)
throws javax.jbi.messaging.MessagingException
properties -
javax.jbi.messaging.MessagingException
void setInMessageProperty(String name,
Object value)
throws javax.jbi.messaging.MessagingException
name - value -
javax.jbi.messaging.MessagingExceptionvoid setInSubject(Subject subject)
subject - void setInterfaceName(QName interfaceName)
interfaceName - void setOperation(QName name)
name -
void setOutMessage(javax.jbi.messaging.NormalizedMessage msg)
throws javax.jbi.messaging.MessagingException
msg -
javax.jbi.messaging.MessagingException
void setOutMessageAttachment(String name,
DataHandler attachment)
throws javax.jbi.messaging.MessagingException
name - attachment -
javax.jbi.messaging.MessagingException
void setOutMessageAttachments(Map<String,DataHandler> attachements)
throws javax.jbi.messaging.MessagingException
attachements - the attachements to put in the out message
javax.jbi.messaging.MessagingException - if error occured during out message creation
void setOutMessageContent(Document outContent)
throws javax.jbi.messaging.MessagingException
outContent - the DOM document content to put in the out message
javax.jbi.messaging.MessagingException - if error occured during out message creation
void setOutMessageContent(InputStream inContent)
throws javax.jbi.messaging.MessagingException
inContent - the Source content to put in the in message
javax.jbi.messaging.MessagingException - if error occurred during in message creation
void setOutMessageContent(Source outContent)
throws javax.jbi.messaging.MessagingException
outContent - the Source content to put in the out message
javax.jbi.messaging.MessagingException - if error occured during out message creation
void setOutMessageProperties(Map<String,Object> properties)
throws javax.jbi.messaging.MessagingException
properties -
javax.jbi.messaging.MessagingException
void setOutMessageProperty(String name,
Object value)
throws javax.jbi.messaging.MessagingException
name - value -
javax.jbi.messaging.MessagingExceptionvoid setOutSubject(Subject subject)
subject -
void setProperty(String name,
Object obj)
name - obj - void setService(QName service)
service -
void setStatus(javax.jbi.messaging.ExchangeStatus status)
throws javax.jbi.messaging.MessagingException
status -
javax.jbi.messaging.MessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||