Interface ServiceDetails


  • public interface ServiceDetails
    A service definition, as it appears in a ServiceQueryResult.
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.String> expiresAt()
      The date and time at which the service definition entry expires, if ever.
      static se.arkalix.core.plugin.ServiceDetailsDto from​(se.arkalix.description.ServiceDescription description)  
      java.util.List<InterfaceName> interfaces()
      List of supported network interface triplets.
      java.util.Map<java.lang.String,​java.lang.String> metadata()
      Arbitrary service metadata.
      ServiceName name()
      Service name.
      SystemDetails provider()
      Service provider.
      se.arkalix.descriptor.SecurityDescriptor security()
      The security/authentication mode supported by the service.
      default se.arkalix.description.ServiceDescription toServiceDescription()
      Converts this objects into a ServiceDescription.
      java.lang.String uri()
      Service qualifier, also referred to as service URI.
      int version()
      Service version.
    • Method Detail

      • uri

        java.lang.String uri()
        Service qualifier, also referred to as service URI.

        The significance of this value depends on the application-level transport protocol employed by the service. If, for example, HTTP is used, then this is a base path.

      • expiresAt

        java.util.Optional<java.lang.String> expiresAt()
        The date and time at which the service definition entry expires, if ever.
      • security

        se.arkalix.descriptor.SecurityDescriptor security()
        The security/authentication mode supported by the service.
      • metadata

        java.util.Map<java.lang.String,​java.lang.String> metadata()
        Arbitrary service metadata.
      • version

        int version()
        Service version.
      • interfaces

        java.util.List<InterfaceName> interfaces()
        List of supported network interface triplets.
        See Also:
        InterfaceDescriptor
      • toServiceDescription

        default se.arkalix.description.ServiceDescription toServiceDescription()
        Converts this objects into a ServiceDescription.
        Returns:
        New ServiceDescription.
        Throws:
        java.lang.RuntimeException - If the type of public key held by provider(), if any, is not supported.
      • from

        static se.arkalix.core.plugin.ServiceDetailsDto from​(se.arkalix.description.ServiceDescription description)