Package com.helger.peppol.sml
Enum ESML
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,com.helger.commons.name.IHasDisplayName,com.helger.commons.type.IHasObjectType,com.helger.commons.type.ITypedObject<String>,ISMLInfo,Serializable,Comparable<ESML>,java.lang.constant.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
- 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:8080DIGIT production URL - valid from June 9th, 2015DIGIT test URL - valid from June 9th, 2015 -
Method Summary
Modifier and TypeMethodDescriptionstatic ESMLgetFromIDOrDefault(String sID, ESML eDefault) static ESMLgetFromIDOrNull(String sID) getID()com.helger.commons.type.ObjectTypebooleanstatic ESMLReturns the enum constant of this type with the specified name.static ESML[]values()Returns an array containing the constants of this enum type, 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.commons.type.IHasObjectType
getObjectTypeName, hasObjectTypeMethods inherited from interface com.helger.peppol.sml.ISMLInfo
getPublisherDNSZone
-
Enum Constant Details
-
DIGIT_PRODUCTION
DIGIT production URL - valid from June 9th, 2015 -
DIGIT_TEST
DIGIT test URL - valid from June 9th, 2015 -
DEVELOPMENT_LOCAL
http://localhost:8080
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getObjectType
- Specified by:
getObjectTypein interfacecom.helger.commons.type.IHasObjectType
-
getID
- Specified by:
getIDin interfacecom.helger.commons.id.IHasID<String>
-
getDisplayName
- Specified by:
getDisplayNamein interfacecom.helger.commons.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
-
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.
-
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()+ "/" +CSMLDefault.MANAGEMENT_SERVICE_METADATA
-
getManageParticipantIdentifierEndpointAddress
- Specified by:
getManageParticipantIdentifierEndpointAddressin interfaceISMLInfo- Returns:
- The service endpoint URL to manage participant identifiers. Never
null. This is usually the URL corresponding toISMLInfo.getManagementServiceURL()+ "/" +CSMLDefault.MANAGEMENT_SERVICE_PARTICIPANTIDENTIFIER
-
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
-