@ThreadSafe public class AS4ProfileManager extends Object implements IAS4ProfileRegistrar, Serializable
IAS4ProfileRegistrarSPI.| Constructor and Description |
|---|
AS4ProfileManager() |
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.collection.impl.ICommonsList<IAS4Profile> |
getAllProfiles() |
IAS4Profile |
getDefaultProfile() |
IAS4Profile |
getDefaultProfileOrNull() |
int |
getProfileCount() |
IAS4Profile |
getProfileOfID(String sID) |
boolean |
hasDefaultProfile() |
void |
registerProfile(IAS4Profile aAS4Profile)
Register a new AS4 profile.
|
void |
setDefaultProfile(IAS4Profile aAS4Profile)
Set the provided AS4 profile as the default
|
IAS4Profile |
setDefaultProfileID(String sDefaultProfileID)
Set the default profile to be used.
|
String |
toString() |
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<IAS4Profile> getAllProfiles()
@Nonnegative public final int getProfileCount()
@Nullable public IAS4Profile getProfileOfID(@Nullable String sID)
public void registerProfile(@Nonnull IAS4Profile aAS4Profile)
IAS4ProfileRegistrarregisterProfile in interface IAS4ProfileRegistraraAS4Profile - The AS4 profile to be registered. May not be null.public boolean hasDefaultProfile()
true if an explicit default profile is present,
false if not.@Nullable public IAS4Profile getDefaultProfileOrNull()
null if no default is present and
more than one profile is registered@Nonnull public IAS4Profile getDefaultProfile()
IllegalStateException - If no default is present and more than one profile is registered@Nullable public IAS4Profile setDefaultProfileID(@Nullable String sDefaultProfileID)
sDefaultProfileID - The ID of the default profile. May be null.null if no such profile is registered, the resolve
profile otherwise.public void setDefaultProfile(@Nullable IAS4Profile aAS4Profile)
IAS4ProfileRegistrarsetDefaultProfile in interface IAS4ProfileRegistraraAS4Profile - The default AS4 profile to be used. May be null.Copyright © 2015–2020 Philip Helger. All rights reserved.