Class SOAPHeaderElementProcessorExtractEbms3Messaging

java.lang.Object
com.helger.phase4.servlet.soap.SOAPHeaderElementProcessorExtractEbms3Messaging
All Implemented Interfaces:
ISOAPHeaderElementProcessor

public class SOAPHeaderElementProcessorExtractEbms3Messaging extends Object implements ISOAPHeaderElementProcessor
This class manages the EBMS Messaging SOAP header element
Author:
Philip Helger, bayerlma, Gregor Scholtysik
  • Field Details

    • QNAME_MESSAGING

      public static final QName QNAME_MESSAGING
      The QName for which this processor should be invoked
  • Constructor Details

    • SOAPHeaderElementProcessorExtractEbms3Messaging

      public SOAPHeaderElementProcessorExtractEbms3Messaging(@Nonnull IPModeResolver aPModeResolver, @Nullable Consumer<? super IPMode> aPModeConsumer)
      Ctor
      Parameters:
      aPModeResolver - The PMode resolver to be used. May not be null.
      aPModeConsumer - An optional consumer that is invoked every time a PMode was successfully resolved. May be null.
  • Method Details

    • processHeaderElement

      @Nonnull public com.helger.commons.state.ESuccess processHeaderElement(@Nonnull Document aSoapDoc, @Nonnull Element aElement, @Nonnull com.helger.commons.collection.impl.ICommonsList<WSS4JAttachment> aAttachments, @Nonnull AS4MessageState aState, @Nonnull com.helger.commons.collection.impl.ICommonsList<Ebms3Error> aProcessingErrorMessagesTarget)
      Description copied from interface: ISOAPHeaderElementProcessor
      Process the passed header element.
      Specified by:
      processHeaderElement in interface ISOAPHeaderElementProcessor
      Parameters:
      aSoapDoc - The complete SOAP document (logically no MIME parts are contained). Never null.
      aElement - The DOM node with the header element. Never null.
      aAttachments - Existing extracted attachments. Never null but maybe empty.
      aState - The current processing state (mutable implementation version needed). Never null.
      aProcessingErrorMessagesTarget - The error list to be filled in case there are processing errors. Never null. The list is always empty initially.
      Returns:
      Never null. If ESuccess.FAILURE than the header is treated as "not handled".