|
||||||||||
| 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.SimpleEndpoint |
|---|
logger |
| Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint |
|---|
definition, description, endpoint, interfaceName, service, serviceUnit |
| Constructor Summary | |
|---|---|
ContentEnricher()
|
|
| Method Summary | |
|---|---|
javax.xml.namespace.QName |
getEnricherElementName()
returns the QName of the resulting root node |
javax.xml.namespace.QName |
getRequestElementName()
Returns the QName of the element which contains the 'IN Message' within the response message |
javax.xml.namespace.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(javax.xml.namespace.QName enricherElementName)
Sets the QName of the resulting root node |
void |
setEnricherTarget(ExchangeTarget enricherTarget)
The target that will receive a copy of the input message and return an addtitional content. |
void |
setRequestElementName(javax.xml.namespace.QName requestElementName)
Sets the QName of the element which contains the 'IN Message' within the response message |
void |
setResultElementName(javax.xml.namespace.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)
The target where the enriched exchanges are sent. |
| 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 javax.xml.namespace.QName getEnricherElementName()
public void setEnricherElementName(javax.xml.namespace.QName enricherElementName)
enricherElementName - QName of the resulting root nodepublic javax.xml.namespace.QName getRequestElementName()
public void setRequestElementName(javax.xml.namespace.QName requestElementName)
requestElementName - QNamepublic javax.xml.namespace.QName getResultElementName()
public void setResultElementName(javax.xml.namespace.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 java.lang.Exception
processAsync in class EIPEndpointjava.lang.Exception
protected void processSync(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
processSync in class EIPEndpointjava.lang.Exception
public void process(javax.jbi.messaging.MessageExchange exchange)
throws java.lang.Exception
process in interface Endpointprocess in class EIPEndpointjava.lang.Exceptionpublic void setTarget(ExchangeTarget target)
target - public void setEnricherTarget(ExchangeTarget enricherTarget)
enricherTarget -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||