Class BasicMessageFilter
java.lang.Object
org.apache.camel.component.spring.ws.filter.impl.BasicMessageFilter
- All Implemented Interfaces:
MessageFilter
This class populates a SOAP header and attachments in the WebServiceMessage instance.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doProcessSoapAttachments
(org.apache.camel.attachment.AttachmentMessage inOrOut, org.springframework.ws.soap.SoapMessage response) Populate SOAP attachments from in or out exchange message.protected void
doProcessSoapHeader
(org.apache.camel.attachment.AttachmentMessage inOrOut, org.springframework.ws.soap.SoapMessage soapMessage) The SOAP header is populated from exchange.getOut().getHeaders() if this class is used by the consumer or exchange.getIn().getHeaders() if this class is used by the producer.void
filterConsumer
(org.apache.camel.Exchange exchange, org.springframework.ws.WebServiceMessage response) Calls filter for a consumervoid
filterProducer
(org.apache.camel.Exchange exchange, org.springframework.ws.WebServiceMessage response) Calls filter for a producerprotected void
processHeaderAndAttachments
(org.apache.camel.attachment.AttachmentMessage inOrOut, org.springframework.ws.WebServiceMessage response) If applicable this method adds a SOAP headers and attachments.protected void
processSoapHeader
(org.apache.camel.attachment.AttachmentMessage inOrOut, org.springframework.ws.soap.SoapMessage soapMessage) If applicable this method adds a SOAP header.protected boolean
validHeaderName
(String name) Whether a header is valid
-
Constructor Details
-
BasicMessageFilter
public BasicMessageFilter()
-
-
Method Details
-
validHeaderName
Whether a header is valid -
filterProducer
public void filterProducer(org.apache.camel.Exchange exchange, org.springframework.ws.WebServiceMessage response) Description copied from interface:MessageFilter
Calls filter for a producer- Specified by:
filterProducer
in interfaceMessageFilter
- Parameters:
exchange
- the exchangeresponse
- provided by the producer
-
filterConsumer
public void filterConsumer(org.apache.camel.Exchange exchange, org.springframework.ws.WebServiceMessage response) Description copied from interface:MessageFilter
Calls filter for a consumer- Specified by:
filterConsumer
in interfaceMessageFilter
- Parameters:
exchange
- the exchangeresponse
- provided by the consumer
-
processHeaderAndAttachments
protected void processHeaderAndAttachments(org.apache.camel.attachment.AttachmentMessage inOrOut, org.springframework.ws.WebServiceMessage response) If applicable this method adds a SOAP headers and attachments. -
processSoapHeader
protected void processSoapHeader(org.apache.camel.attachment.AttachmentMessage inOrOut, org.springframework.ws.soap.SoapMessage soapMessage) If applicable this method adds a SOAP header. -
doProcessSoapHeader
protected void doProcessSoapHeader(org.apache.camel.attachment.AttachmentMessage inOrOut, org.springframework.ws.soap.SoapMessage soapMessage) The SOAP header is populated from exchange.getOut().getHeaders() if this class is used by the consumer or exchange.getIn().getHeaders() if this class is used by the producer. If .getHeaders() contains under a certain key a value with the QName object, it is directly added as a new header element. If it contains only a String value, it is transformed into a header attribute. Following headers are excluded: -
doProcessSoapAttachments
protected void doProcessSoapAttachments(org.apache.camel.attachment.AttachmentMessage inOrOut, org.springframework.ws.soap.SoapMessage response) Populate SOAP attachments from in or out exchange message. This the convenient method for overriding.
-