Package com.helger.phase4.incoming
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 Summary
FieldsFields inherited from interface com.helger.phase4.incoming.IAS4IncomingProfileSelector
DEFAULT_VALIDATE_AGAINST_PROFILE -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor with validation enabledAS4IncomingProfileSelectorFromGlobal(boolean bValidateAgainstProfile) Constructor -
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.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
AS4IncomingProfileSelectorFromGlobal
public AS4IncomingProfileSelectorFromGlobal()Default constructor with validation enabled -
AS4IncomingProfileSelectorFromGlobal
public AS4IncomingProfileSelectorFromGlobal(boolean bValidateAgainstProfile) Constructor- Parameters:
bValidateAgainstProfile-trueto enable validation,falseto disable validation against the profile- Since:
- 3.0.0
-
-
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
-