Class ZeroConfClient

    • Constructor Summary

      Constructors 
      Constructor Description
      ZeroConfClient()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] getHostList​(java.lang.String service)  
      javax.jmdns.ServiceInfo getService​(java.lang.String service)
      Request the first service of a particular service.
      javax.jmdns.ServiceInfo getServicebyAdName​(java.lang.String service, java.lang.String adName)
      Request the first service of a particular service with a particular service name.
      javax.jmdns.ServiceInfo getServiceOnHost​(java.lang.String service, java.lang.String hostname)
      Request the first service of a particular service on a specified host.
      java.util.List<javax.jmdns.ServiceInfo> getServices​(java.lang.String service)
      Get all servers providing the specified service.
      void startServiceListener​(java.lang.String service)  
      void stopServiceListener​(java.lang.String service)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getService

        public javax.jmdns.ServiceInfo getService​(@Nonnull
                                                  java.lang.String service)
        Request the first service of a particular service.
        Parameters:
        service - string service getName
        Returns:
        JmDNS service entry for the first service of a particular service.
      • getServiceOnHost

        public javax.jmdns.ServiceInfo getServiceOnHost​(@Nonnull
                                                        java.lang.String service,
                                                        @Nonnull
                                                        java.lang.String hostname)
        Request the first service of a particular service on a specified host.
        Parameters:
        service - string service service
        hostname - string host name
        Returns:
        JmDNS service entry for the first service of a particular service on the specified host..
      • getServicebyAdName

        public javax.jmdns.ServiceInfo getServicebyAdName​(@Nonnull
                                                          java.lang.String service,
                                                          @Nonnull
                                                          java.lang.String adName)
        Request the first service of a particular service with a particular service name.
        Parameters:
        service - string service service
        adName - string qualified service advertisement name
        Returns:
        JmDNS service entry for the first service of a particular service on the specified host..