Class AS4IncomingProfileSelectorFromGlobal

java.lang.Object
com.helger.phase4.incoming.AS4IncomingProfileSelectorFromGlobal
All Implemented Interfaces:
IAS4IncomingProfileSelector

public class AS4IncomingProfileSelectorFromGlobal extends Object implements IAS4IncomingProfileSelector
Default implementation of IAS4IncomingProfileSelector taking the AS4 profile ID from the global AS4ProfileSelector.
Since:
0.13.0
Author:
Philip Helger
  • Field Details

  • Constructor Details

    • AS4IncomingProfileSelectorFromGlobal

      public AS4IncomingProfileSelectorFromGlobal()
      Default constructor with validation enabled
    • AS4IncomingProfileSelectorFromGlobal

      public AS4IncomingProfileSelectorFromGlobal(boolean bValidateAgainstProfile)
      Constructor
      Parameters:
      bValidateAgainstProfile - true to enable validation, false to disable validation against the profile
      Since:
      3.0.0
  • Method Details

    • getAS4ProfileID

      @Nullable public String getAS4ProfileID(@Nonnull IAS4IncomingMessageState aIncomingState)
      Description copied from interface: IAS4IncomingProfileSelector
      Try to determine the AS4 profile to be used for an incoming message. This method is only called after the SOAP headers were processed successfully.
      Specified by:
      getAS4ProfileID in interface IAS4IncomingProfileSelector
      Parameters:
      aIncomingState - The message state of processing. Never null.
      Returns:
      The AS4 profile ID or null if none was found.
    • validateAgainstProfile

      public boolean validateAgainstProfile()
      Description copied from interface: IAS4IncomingProfileSelector
      Configure if the profile validation rules should be applied or not. Usually this is recommended, but there might be edge cases where it is good to be able to deactivate them.
      Specified by:
      validateAgainstProfile in interface IAS4IncomingProfileSelector
      Returns:
      true if profile validation should be performed, false if not. The default is true.
    • toString

      public String toString()
      Overrides:
      toString in class Object