Package com.helger.peppol.sml
Class SMLInfo
java.lang.Object
com.helger.peppol.sml.SMLInfo
- All Implemented Interfaces:
com.helger.base.clone.ICloneable<SMLInfo>,com.helger.base.id.IHasID<String>,com.helger.base.name.IHasDisplayName,com.helger.base.type.IHasObjectType,com.helger.base.type.ITypedObject<String>,ISMLInfo,Serializable
@Immutable
public class SMLInfo
extends Object
implements ISMLInfo, com.helger.base.clone.ICloneable<SMLInfo>
Use instances of this class if you're not happy with the
ESML enumeration value but need
an instance of ISMLInfo.- Author:
- Philip Helger
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Use the build insteadSMLInfo(@NonNull @Nonempty String sDisplayName, @NonNull @Nonempty String sDNSZone, @NonNull @Nonempty String sManagementServiceURL, boolean bClientCertificateRequired) Deprecated, for removal: This API element is subject to removal in a future version.Use the builder insteadSMLInfo(@NonNull @Nonempty String sID, @NonNull @Nonempty String sDisplayName, @NonNull @Nonempty String sDNSZone, @NonNull @Nonempty String sManagementServiceURL, boolean bClientCertificateRequired) Deprecated, for removal: This API element is subject to removal in a future version.Use the builder insteadprotectedSMLInfo(@NonNull @Nonempty String sID, @NonNull @Nonempty String sDisplayName, @NonNull @Nonempty String sDNSZone, @NonNull @Nonempty String sManagementServiceURL, @NonNull String sURLSuffixManageSMP, @NonNull String sURLSuffixManageParticipant, boolean bClientCertificateRequired) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull SMLInfo.SMLInfoBuilderbuilder()static @NonNull SMLInfo.SMLInfoBuilderboolean@NonNull SMLInfogetClone()@NonNull @Nonempty String@NonNull @Nonempty String@NonNull @Nonempty StringgetID()@NonNull @Nonempty String@NonNull URL@NonNull URL@NonNull com.helger.base.type.ObjectType@NonNull String@NonNull StringinthashCode()booleanstatic booleanisValidURLSuffix(@NonNull String s) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.base.type.IHasObjectType
getObjectTypeName, hasObjectTypeMethods inherited from interface com.helger.peppol.sml.ISMLInfo
getPublisherDNSZone
-
Field Details
-
DEFAULT_SUFFIX_MANAGE_SMP
- See Also:
-
DEFAULT_SUFFIX_MANAGE_PARTICIPANT
- See Also:
-
DEFAULT_CLIENT_CERTIFICATE_REQUIRED
public static final boolean DEFAULT_CLIENT_CERTIFICATE_REQUIRED- See Also:
-
OT
public static final com.helger.base.type.ObjectType OT
-
-
Constructor Details
-
SMLInfo
Deprecated, for removal: This API element is subject to removal in a future version.Use the build insteadCopy constructor.- Parameters:
aOther- The object to copy from. May not benull.
-
SMLInfo
@Deprecated(forRemoval=true, since="12.1.0") public SMLInfo(@Nonempty @NonNull @Nonempty String sDisplayName, @Nonempty @NonNull @Nonempty String sDNSZone, @Nonempty @NonNull @Nonempty String sManagementServiceURL, boolean bClientCertificateRequired) Deprecated, for removal: This API element is subject to removal in a future version.Use the builder instead- Parameters:
sDisplayName- The "shorthand" display name like "SML" or "SMK". May neither benullnor empty.sDNSZone- The DNS zone on which this SML is operating. May not benull. It must be ensured that the value consists only of lower case characters for comparability! Example:sml.peppolcentral.orgsManagementServiceURL- The service URL where the management application is running on incl. the host name. May not benull. The difference to the host name is the eventually present context path.bClientCertificateRequired-trueif this SML requires a client certificate for access,falseotherwise. Both production SML and SMK require a client certificate. Only a locally running SML software may not require a client certificate.
-
SMLInfo
@Deprecated(forRemoval=true, since="12.1.0") public SMLInfo(@Nonempty @NonNull @Nonempty String sID, @Nonempty @NonNull @Nonempty String sDisplayName, @Nonempty @NonNull @Nonempty String sDNSZone, @Nonempty @NonNull @Nonempty String sManagementServiceURL, boolean bClientCertificateRequired) Deprecated, for removal: This API element is subject to removal in a future version.Use the builder instead- Parameters:
sID- Object ID. May neither benullnor empty.sDisplayName- The "shorthand" display name like "SML" or "SMK". May neither benullnor empty.sDNSZone- The DNS zone on which this SML is operating. May not benull. It must be ensured that the value consists only of lower case characters for comparability! Example:sml.peppolcentral.orgsManagementServiceURL- The service URL where the management application is running on incl. the host name. May not benull. The difference to the host name is the eventually present context path.bClientCertificateRequired-trueif this SML requires a client certificate for access,falseotherwise. Both production SML and SMK require a client certificate. Only a locally running SML software may not require a client certificate.
-
SMLInfo
protected SMLInfo(@Nonempty @NonNull @Nonempty String sID, @Nonempty @NonNull @Nonempty String sDisplayName, @Nonempty @NonNull @Nonempty String sDNSZone, @Nonempty @NonNull @Nonempty String sManagementServiceURL, @NonNull String sURLSuffixManageSMP, @NonNull String sURLSuffixManageParticipant, boolean bClientCertificateRequired) - Parameters:
sID- Object ID. May neither benullnor empty.sDisplayName- The "shorthand" display name like "SML" or "SMK". May neither benullnor empty.sDNSZone- The DNS zone on which this SML is operating. May not benull. It must be ensured that the value consists only of lower case characters for comparability! Example:sml.peppolcentral.orgsManagementServiceURL- The service URL where the management application is running on incl. the host name. May not benull. The difference to the host name is the eventually present context path.sURLSuffixManageSMP- The sub-path to be used for managing SMP data in the SML. May not benull, may be empty. If not empty it must start with a slash ("/").sURLSuffixManageParticipant- The sub-path to be used for managing participant data in the SML. May not benull, may be empty. If not empty it must start with a slash ("/").bClientCertificateRequired-trueif this SML requires a client certificate for access,falseotherwise. Both production SML and SMK require a client certificate. Only a locally running SML software may not require a client certificate.- Throws:
IllegalArgumentException- If the manage service URLs cannot be created
-
-
Method Details
-
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
-
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.
-
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.
-
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()
-
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.
-
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.
-
getClone
- Specified by:
getClonein interfacecom.helger.base.clone.ICloneable<SMLInfo>
-
equals
-
hashCode
public int hashCode() -
toString
-
builder
- Returns:
- A new empty builder. Never
null. - Since:
- 12.1.0
-
builder
- Parameters:
aInfo- The object to use as the basis for the builder. May not benull.- Returns:
- A new builder that is prefilled with the data of the parameter object. Never
null. - Since:
- 12.1.0
-
isValidURLSuffix
-