Class AS4IncomingProfileSelectorConstant

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

@Immutable public class AS4IncomingProfileSelectorConstant extends Object implements IAS4IncomingProfileSelector
Implementation of IAS4IncomingProfileSelector taking a constant AS4 profile ID.
Since:
3.0.0
Author:
Philip Helger
  • Constructor Details

    • AS4IncomingProfileSelectorConstant

      public AS4IncomingProfileSelectorConstant(@Nullable String sAS4ProfileID)
    • AS4IncomingProfileSelectorConstant

      public AS4IncomingProfileSelectorConstant(@Nullable String sAS4ProfileID, boolean bValidateAgainstProfile)
  • 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