Class BasicMessageFilter
- java.lang.Object
-
- org.apache.camel.component.spring.ws.filter.impl.BasicMessageFilter
-
- All Implemented Interfaces:
MessageFilter
public class BasicMessageFilter extends Object implements MessageFilter
This class populates a SOAP header and attachments in the WebServiceMessage instance.
-
-
Constructor Summary
Constructors Constructor Description BasicMessageFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoProcessSoapAttachments(org.apache.camel.attachment.AttachmentMessage inOrOut, org.springframework.ws.soap.SoapMessage response)Populate SOAP attachments from in or out exchange message.protected voiddoProcessSoapHeader(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.voidfilterConsumer(org.apache.camel.Exchange exchange, org.springframework.ws.WebServiceMessage response)Calls filter for a consumervoidfilterProducer(org.apache.camel.Exchange exchange, org.springframework.ws.WebServiceMessage response)Calls filter for a producerprotected voidprocessHeaderAndAttachments(org.apache.camel.attachment.AttachmentMessage inOrOut, org.springframework.ws.WebServiceMessage response)If applicable this method adds a SOAP headers and attachments.protected voidprocessSoapHeader(org.apache.camel.attachment.AttachmentMessage inOrOut, org.springframework.ws.soap.SoapMessage soapMessage)If applicable this method adds a SOAP header.protected booleanvalidHeaderName(String name)Whether a header is valid
-
-
-
Method Detail
-
validHeaderName
protected boolean validHeaderName(String name)
Whether a header is valid
-
filterProducer
public void filterProducer(org.apache.camel.Exchange exchange, org.springframework.ws.WebServiceMessage response)Description copied from interface:MessageFilterCalls filter for a producer- Specified by:
filterProducerin 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:MessageFilterCalls filter for a consumer- Specified by:
filterConsumerin 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.- Parameters:
inOrOut-response-
-
processSoapHeader
protected void processSoapHeader(org.apache.camel.attachment.AttachmentMessage inOrOut, org.springframework.ws.soap.SoapMessage soapMessage)If applicable this method adds a SOAP header.- Parameters:
inOrOut-soapMessage-
-
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.- Parameters:
inOrOut-response-
-
-