org.apache.camel.component.spring.ws.filter.impl
Class BasicMessageFilter

java.lang.Object
  extended by 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
BasicMessageFilter()
           
 
Method Summary
protected  void doProcessSoapAttachments(org.apache.camel.Message inOrOut, org.springframework.ws.soap.SoapMessage response)
          Populate SOAP attachments from in or out exchange message.
protected  void doProcessSoapHeader(org.apache.camel.Message 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 consumer
 void filterProducer(org.apache.camel.Exchange exchange, org.springframework.ws.WebServiceMessage response)
          Calls filter for a producer
protected  void processHeaderAndAttachments(org.apache.camel.Message inOrOut, org.springframework.ws.WebServiceMessage response)
          If applicable this method adds a SOAP headers and attachments.
protected  void processSoapHeader(org.apache.camel.Message inOrOut, org.springframework.ws.soap.SoapMessage soapMessage)
          If applicable this method adds a SOAP header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicMessageFilter

public BasicMessageFilter()
Method Detail

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 interface MessageFilter

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 interface MessageFilter

processHeaderAndAttachments

protected void processHeaderAndAttachments(org.apache.camel.Message 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.Message 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.Message 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: LOWERCASE_BREADCRUMB_ID

Parameters:
inOrOut -
soapMessage -
See Also:
SpringWebserviceConstants.SPRING_WS_SOAP_ACTION, @see SpringWebserviceConstants.SPRING_WS_ADDRESSING_ACTION), @see SpringWebserviceConstants.SPRING_WS_ENDPOINT_URI This the convinient method for overriding.

doProcessSoapAttachments

protected void doProcessSoapAttachments(org.apache.camel.Message 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 -


Apache Camel