Interface IAS4IncomingProfileSelector

All Known Implementing Classes:
AS4IncomingProfileSelectorConstant, AS4IncomingProfileSelectorFromGlobal

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

    • DEFAULT_VALIDATE_AGAINST_PROFILE

      static final boolean DEFAULT_VALIDATE_AGAINST_PROFILE
      See Also:
  • Method Details

    • getAS4ProfileID

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

      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