Interface IAS4IncomingProfileSelector

All Known Implementing Classes:
AS4IncomingProfileSelectorFromGlobal

public interface IAS4IncomingProfileSelector
Callback interface to determine the used AS4 profile of an incoming message.
Since:
0.13.0
Author:
Philip Helger
  • Method Summary

    Modifier and Type
    Method
    Description
    Try to determine the AS4 profile to be used for an incoming message.
    default boolean
    Configure if the profile validation rules should be applied or not.
  • Method Details

    • getAS4ProfileID

      @Nullable String getAS4ProfileID(@Nonnull IAS4MessageState aState)
      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.
      Parameters:
      aState - The message state of processing. Never null.
      Returns:
      The AS4 profile ID or null if none was found.
    • validateAgainstProfile

      default boolean validateAgainstProfile()
      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.
      Returns:
      true if profile validation should be performed, false if not. The default is true.
      Since:
      0.13.1