Package com.helger.phase4.incoming
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
-
Field Summary
Fields inherited from interface com.helger.phase4.incoming.IAS4IncomingProfileSelector
DEFAULT_VALIDATE_AGAINST_PROFILE -
Constructor Summary
ConstructorsConstructorDescriptionAS4IncomingProfileSelectorConstant(String sAS4ProfileID) AS4IncomingProfileSelectorConstant(String sAS4ProfileID, boolean bValidateAgainstProfile) -
Method Summary
Modifier and TypeMethodDescriptiongetAS4ProfileID(IAS4IncomingMessageState aIncomingState) Try to determine the AS4 profile to be used for an incoming message.toString()booleanConfigure if the profile validation rules should be applied or not.
-
Constructor Details
-
AS4IncomingProfileSelectorConstant
-
AS4IncomingProfileSelectorConstant
-
-
Method Details
-
getAS4ProfileID
Description copied from interface:IAS4IncomingProfileSelectorTry 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:
getAS4ProfileIDin interfaceIAS4IncomingProfileSelector- Parameters:
aIncomingState- The message state of processing. Nevernull.- Returns:
- The AS4 profile ID or
nullif none was found.
-
validateAgainstProfile
public boolean validateAgainstProfile()Description copied from interface:IAS4IncomingProfileSelectorConfigure 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:
validateAgainstProfilein interfaceIAS4IncomingProfileSelector- Returns:
trueif profile validation should be performed,falseif not. The default istrue.
-
toString
-