Package com.helger.phase4.profile
Interface IAS4ProfileManager
- All Superinterfaces:
IAS4ProfileRegistrar
- All Known Implementing Classes:
AS4ProfileManager
Base interface for an AS4 profile manager.
- Since:
- 0.10.4
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptioncom.helger.commons.collection.impl.ICommonsList<IAS4Profile>getProfileOfID(String sID) Find an existing profile with a certain ID.booleandefault IAS4ProfilesetDefaultProfileID(String sDefaultProfileID) Set the default profile to be used.Methods inherited from interface com.helger.phase4.profile.IAS4ProfileRegistrar
registerProfile, setDefaultProfile
-
Method Details
-
getAllProfiles
@Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsList<IAS4Profile> getAllProfiles()- Returns:
- A non-
nullbut maybe empty list of all contained profiles.
-
getProfileOfID
Find an existing profile with a certain ID.- Parameters:
sID- The ID to search. May benull.- Returns:
nullif no such profile exists
-
hasDefaultProfile
boolean hasDefaultProfile()- Returns:
trueif an explicit default profile is present,falseif not.
-
getDefaultProfileOrNull
- 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
- 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.
- Throws:
IllegalStateException- If no default is present and more than one profile is registered
-
setDefaultProfileID
Set the default profile to be used.- Parameters:
sDefaultProfileID- The ID of the default profile. May benull.- Returns:
nullif no such profile is registered, the resolve profile otherwise.
-