Class MustUnderstandDecoratorInterceptor

java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>
org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
org.openehealth.ipf.commons.ihe.ws.cxf.MustUnderstandDecoratorInterceptor
All Implemented Interfaces:
org.apache.cxf.binding.soap.interceptor.SoapInterceptor, Interceptor<org.apache.cxf.binding.soap.SoapMessage>, PhaseInterceptor<org.apache.cxf.binding.soap.SoapMessage>

public class MustUnderstandDecoratorInterceptor extends org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor
CXF Interceptor to tag SOAP headers with an mustUnderstand flag.
Author:
Jens Riemschneider
  • Constructor Details

    • MustUnderstandDecoratorInterceptor

      public MustUnderstandDecoratorInterceptor()
      Constructs the interceptor.
  • Method Details

    • handleMessage

      public void handleMessage(org.apache.cxf.binding.soap.SoapMessage message) throws Fault
      Throws:
      Fault
    • addHeaders

      public void addHeaders(List<String> headers)
      Adds a set of SOAP headers which are to be flagged with mustUnderstand.
      Parameters:
      headers - the headers to flag, represented as Strings
    • addHeader

      public void addHeader(QName header)
      Adds an item to the list of SOAP headers which are to be flagged with mustUnderstand.
      Parameters:
      header - the header to flag.