Class SoapHeaderElementProcessorWSS4J

java.lang.Object
com.helger.phase4.incoming.soap.SoapHeaderElementProcessorWSS4J
All Implemented Interfaces:
ISoapHeaderElementProcessor

public class SoapHeaderElementProcessorWSS4J extends Object implements ISoapHeaderElementProcessor
This class manages the WSS4J SOAP header
Author:
Philip Helger, bayerlma
  • Field Details

    • QNAME_SECURITY

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

  • Method Details

    • processHeaderElement

      @Nonnull public com.helger.commons.state.ESuccess processHeaderElement(@Nonnull Document aSoapDoc, @Nonnull Element aSecurityNode, @Nonnull com.helger.commons.collection.impl.ICommonsList<WSS4JAttachment> aAttachments, @Nonnull AS4IncomingMessageState aIncomingState, @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.
      aSecurityNode - The DOM node with the header element. Never null.
      aAttachments - Existing extracted attachments. Never null but maybe empty.
      aIncomingState - 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".