Package com.helger.phase4.profile
Class AS4ProfileManager
java.lang.Object
com.helger.phase4.profile.AS4ProfileManager
- All Implemented Interfaces:
IAS4ProfileManager,IAS4ProfileRegistrar
AS4 profile manager. All profiles are registered by SPI -
IAS4ProfileRegistrarSPI.- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.helger.commons.collection.impl.ICommonsList<IAS4Profile>final intgetProfileOfID(String sID) Find an existing profile with a certain ID.booleanvoidregisterProfile(IAS4Profile aAS4Profile) Register a new AS4 profile.voidvoidsetDefaultProfile(IAS4Profile aAS4Profile) Set the provided AS4 profile as the defaulttoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.phase4.profile.IAS4ProfileManager
setDefaultProfileID
-
Constructor Details
-
AS4ProfileManager
public AS4ProfileManager()
-
-
Method Details
-
getAllProfiles
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<IAS4Profile> getAllProfiles()- Specified by:
getAllProfilesin interfaceIAS4ProfileManager- Returns:
- A non-
nullbut maybe empty list of all contained profiles.
-
getProfileCount
-
getProfileOfID
Description copied from interface:IAS4ProfileManagerFind an existing profile with a certain ID.- Specified by:
getProfileOfIDin interfaceIAS4ProfileManager- Parameters:
sID- The ID to search. May benull.- Returns:
nullif no such profile exists
-
registerProfile
Description copied from interface:IAS4ProfileRegistrarRegister a new AS4 profile.- Specified by:
registerProfilein interfaceIAS4ProfileRegistrar- Parameters:
aAS4Profile- The AS4 profile to be registered. May not benull.
-
hasDefaultProfile
public boolean hasDefaultProfile()- Specified by:
hasDefaultProfilein interfaceIAS4ProfileManager- Returns:
trueif an explicit default profile is present,falseif not.
-
getDefaultProfileOrNull
- Specified by:
getDefaultProfileOrNullin interfaceIAS4ProfileManager- Returns:
- The default profile. If none is set, and exactly one profile is
present, it is used.
nullif no default is present and more than one profile is registered
-
getDefaultProfile
- Specified by:
getDefaultProfilein interfaceIAS4ProfileManager- Returns:
- The default profile. If none is set, and exactly one profile is present, it is used. If no default profile is present and more than one profile is present an Exception is thrown.
-
setDefaultProfile
Description copied from interface:IAS4ProfileRegistrarSet the provided AS4 profile as the default- Specified by:
setDefaultProfilein interfaceIAS4ProfileRegistrar- Parameters:
aAS4Profile- The default AS4 profile to be used. May benull.
-
reloadAll
public void reloadAll() -
toString
-