Package com.helger.peppol.sml
Enum Class ESML
- All Implemented Interfaces:
com.helger.base.id.IHasID<String>,com.helger.base.name.IHasDisplayName,com.helger.base.type.IHasObjectType,com.helger.base.type.ITypedObject<String>,ISMLInfo,Serializable,Comparable<ESML>,Constable
Simple enumeration for differentiating the different available SMLs.
- DIGIT_PRODUCTION - DIGIT production URL - valid from June 9th, 2015
- DIGIT_TEST - DIGIT test URL - valid from June 9th, 2015
- PEPPOL_PRODUCTION - valid from March 1st, 2026
- PEPPOL_TEST - valid from March 1st, 2026
- DEVELOPMENT_LOCAL - used for development environment assuming the management application is running on localhost in the ROOT context!
- Author:
- Philip Helger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionhttp://localhost:8080Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.UsePEPPOL_TESTinsteadPeppol production URL - valid from March 19th, 2026Peppol test URL - valid from March 19th, 2026 -
Method Summary
Modifier and TypeMethodDescription@NonNull @Nonempty String@NonNull @Nonempty Stringstatic @Nullable ESMLgetFromIDOrDefault(@Nullable String sID, @Nullable ESML eDefault) static @Nullable ESMLgetFromIDOrNull(@Nullable String sID) @NonNull @Nonempty StringgetID()@NonNull @Nonempty String@NonNull URL@NonNull URL@NonNull com.helger.base.type.ObjectType@NonNull ISMLInfogetProxy()@NonNull String@NonNull Stringbooleanstatic ESMLReturns the enum constant of this class with the specified name.static ESML[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.helger.base.type.IHasObjectType
getObjectTypeName, hasObjectTypeMethods inherited from interface com.helger.peppol.sml.ISMLInfo
getPublisherDNSZone
-
Enum Constant Details
-
DIGIT_PRODUCTION
Deprecated, for removal: This API element is subject to removal in a future version.UsePEPPOL_PRODUCTIONinsteadDIGIT production URL - valid from June 9th, 2015 -
DIGIT_TEST
Deprecated, for removal: This API element is subject to removal in a future version.UsePEPPOL_TESTinsteadDIGIT test URL - valid from June 9th, 2015. -
PEPPOL_PRODUCTION
Peppol production URL - valid from March 19th, 2026 -
PEPPOL_TEST
Peppol test URL - valid from March 19th, 2026 -
DEVELOPMENT_LOCAL
http://localhost:8080
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getProxy
-
getObjectType
public @NonNull com.helger.base.type.ObjectType getObjectType()- Specified by:
getObjectTypein interfacecom.helger.base.type.IHasObjectType
-
getID
- Specified by:
getIDin interfacecom.helger.base.id.IHasID<String>
-
getDisplayName
- Specified by:
getDisplayNamein interfacecom.helger.base.name.IHasDisplayName- Specified by:
getDisplayNamein interfaceISMLInfo- Returns:
- The "shorthand" display name like "SML" or "SMK".
-
getDNSZone
- Specified by:
getDNSZonein interfaceISMLInfo- Returns:
- The DNS zone on which this SML is operating. Never
null. It must be ensured that the value consists only of lower case characters!
Example:sml.peppolcentral.org
-
getURLSuffixManageSMP
- Specified by:
getURLSuffixManageSMPin interfaceISMLInfo- Returns:
- The relative sub path for managing the service metadata on the SML server. If not
empty, it must start with a slash ('/'). May not be
nullbut maybe empty.
-
getManagementServiceURL
- Specified by:
getManagementServiceURLin interfaceISMLInfo- Returns:
- The service URL where the management application is running on including the host name.
Never
null. The difference to the host name is the eventually present context path. This path may never end with a slash.
-
getURLSuffixManageParticipant
- Specified by:
getURLSuffixManageParticipantin interfaceISMLInfo- Returns:
- The relative sub path for managing the participants on the SML server. If not empty, it
must start with a slash ('/'). May not be
nullbut maybe empty.
-
getManageServiceMetaDataEndpointAddress
- Specified by:
getManageServiceMetaDataEndpointAddressin interfaceISMLInfo- Returns:
- The service endpoint URL to manage SMP meta data. Never
null. This is usually the URL corresponding toISMLInfo.getManagementServiceURL()+ISMLInfo.getURLSuffixManageSMP()
-
getManageParticipantIdentifierEndpointAddress
- Specified by:
getManageParticipantIdentifierEndpointAddressin interfaceISMLInfo- Returns:
- The service endpoint URL to manage participant identifiers. Never
null. This is usually the URL corresponding toISMLInfo.getManagementServiceURL()+ISMLInfo.getURLSuffixManageParticipant()
-
isClientCertificateRequired
public boolean isClientCertificateRequired()- Specified by:
isClientCertificateRequiredin interfaceISMLInfo- Returns:
trueif this SML requires a client certificate for access,falseotherwise. Both PEPPOL production SML and SMK require a client certificate. Only a locally running SML software may not require a client certificate.
-
getFromIDOrNull
-
getFromIDOrDefault
-
PEPPOL_PRODUCTIONinstead