|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.common.endpoints.AbstractEndpoint
org.apache.servicemix.common.endpoints.SimpleEndpoint
org.apache.servicemix.common.endpoints.ProviderEndpoint
org.apache.servicemix.eip.EIPEndpoint
org.apache.servicemix.eip.patterns.ContentEnricher
public class ContentEnricher
Implementation of the 'Content-Enricher' Pattern.
| Field Summary |
|---|
| Fields inherited from class org.apache.servicemix.eip.EIPEndpoint |
|---|
lockManager, store, storeFactory, timerManager, wsdlExchangeTarget, wsdlResource |
| Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
definition, description, endpoint, interfaceName, logger, service, serviceUnit |
| Constructor Summary | |
|---|---|
ContentEnricher()
|
|
| Method Summary | |
|---|---|
QName |
getEnricherElementName()
returns the QName of the resulting root node |
QName |
getRequestElementName()
Returns the QName of the element which contains the 'IN Message' within the response message |
QName |
getResultElementName()
Returns the QName of the element which contains the message which was produced by the enricherTarget within the response message |
boolean |
isCopyAttachments()
|
boolean |
isCopyProperties()
|
void |
process(javax.jbi.messaging.MessageExchange exchange)
|
protected void |
processAsync(javax.jbi.messaging.MessageExchange exchange)
|
protected void |
processSync(javax.jbi.messaging.MessageExchange exchange)
|
void |
setCopyAttachments(boolean copyAttachments)
If this is set to true, message attachments from the incoming exchange and the enricher exchange will be copied
to the outgoing message exchange. |
void |
setCopyProperties(boolean copyProperties)
If this is set to true, message properties from the incoming exchange and the enricher exchange will be copied
to the outgoing message exchange. |
void |
setEnricherElementName(QName enricherElementName)
Sets the QName of the resulting root node |
void |
setEnricherTarget(ExchangeTarget enricherTarget)
|
void |
setRequestElementName(QName requestElementName)
Sets the QName of the element which contains the 'IN Message' within the response message |
void |
setResultElementName(QName resultElementName)
Sets the QName of the element which contains the message which was produced by the enricherTarget within the response message |
void |
setTarget(ExchangeTarget target)
|
| Methods inherited from class org.apache.servicemix.common.endpoints.ProviderEndpoint |
|---|
activate, deactivate, getRole, processInOnly, processInOut |
| Methods inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint |
|---|
done, fail, getChannel, getContext, getExchangeFactory, send, sendSync |
| Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ContentEnricher()
| Method Detail |
|---|
public QName getEnricherElementName()
public void setEnricherElementName(QName enricherElementName)
enricherElementName - QName of the resulting root nodepublic QName getRequestElementName()
public void setRequestElementName(QName requestElementName)
requestElementName - QNamepublic QName getResultElementName()
public void setResultElementName(QName resultElementName)
resultElementName - QNamepublic boolean isCopyProperties()
public void setCopyProperties(boolean copyProperties)
true, message properties from the incoming exchange and the enricher exchange will be copied
to the outgoing message exchange. The default value is false (do not copy message properties).
copyProperties - public boolean isCopyAttachments()
public void setCopyAttachments(boolean copyAttachments)
true, message attachments from the incoming exchange and the enricher exchange will be copied
to the outgoing message exchange. The default value is false (do not copy message atachments).
copyAttachments -
protected void processAsync(javax.jbi.messaging.MessageExchange exchange)
throws Exception
processAsync in class EIPEndpointException
protected void processSync(javax.jbi.messaging.MessageExchange exchange)
throws Exception
processSync in class EIPEndpointException
public void process(javax.jbi.messaging.MessageExchange exchange)
throws Exception
process in interface org.apache.servicemix.common.Endpointprocess in class EIPEndpointExceptionpublic void setTarget(ExchangeTarget target)
public void setEnricherTarget(ExchangeTarget enricherTarget)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||