Package com.helger.peppol.sml
Class SMLInfo
java.lang.Object
com.helger.peppol.sml.SMLInfo
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,com.helger.commons.lang.ICloneable<SMLInfo>,com.helger.commons.name.IHasDisplayName,com.helger.commons.type.IHasObjectType,com.helger.commons.type.ITypedObject<String>,ISMLInfo,Serializable
@NotThreadSafe
public class SMLInfo
extends Object
implements ISMLInfo, com.helger.commons.lang.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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final com.helger.commons.type.ObjectType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetClone()getID()com.helger.commons.type.ObjectTypeinthashCode()booleanfinal com.helger.commons.state.EChangesetClientCertificateRequired(boolean bRequiresClientCertificate) final com.helger.commons.state.EChangesetDisplayName(String sDisplayName) final com.helger.commons.state.EChangesetDNSZone(String sDNSZone) final com.helger.commons.state.EChangesetManagementServiceURL(String sManagementServiceURL) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.type.IHasObjectType
getObjectTypeName, hasObjectTypeMethods inherited from interface com.helger.peppol.sml.ISMLInfo
getPublisherDNSZone
-
Field Details
-
DEFAULT_CLIENT_CERTIFICATE_REQUIRED
public static final boolean DEFAULT_CLIENT_CERTIFICATE_REQUIRED- See Also:
-
OT
public static final com.helger.commons.type.ObjectType OT
-
-
Constructor Details
-
SMLInfo
Copy constructor.- Parameters:
aOther- The object to copy from. May not benull.
-
SMLInfo
public SMLInfo(@Nonnull @Nonempty String sDisplayName, @Nonnull @Nonempty String sDNSZone, @Nonnull @Nonempty String sManagementServiceURL, boolean bClientCertificateRequired) - Parameters:
sDisplayName- The "shorthand" display name like "SML" or "SMK".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
-
-
Method Details
-
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".
-
setDisplayName
-
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
-
setDNSZone
-
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
-
setManagementServiceURL
-
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.
-
setClientCertificateRequired
@Nonnull public final com.helger.commons.state.EChange setClientCertificateRequired(boolean bRequiresClientCertificate) -
getClone
- Specified by:
getClonein interfacecom.helger.commons.lang.ICloneable<SMLInfo>
-
equals
-
hashCode
public int hashCode() -
toString
-