Class DiscoveryClient

java.lang.Object
edu.internet2.middleware.grouperClient.discovery.DiscoveryClient

public class DiscoveryClient extends Object
This client will manage discovery, cache results, etc TODO add checksum
  • Constructor Details

    • DiscoveryClient

      public DiscoveryClient()
  • Method Details

    • main

      public static void main(String[] args)
      Parameters:
      args -
    • hasDiscovery

      public static boolean hasDiscovery()
      see if we are configured for discovery
      Returns:
      if we are using discovery
    • retrieveFile

      public static File retrieveFile(String fileName, boolean throwExceptionIfNotFound)
      retrieve a file from the discovery server
      Parameters:
      fileName - file name on the server
      throwExceptionIfNotFound - true if should throw an exception if not found
      Returns:
      the file or throw an exception if not found if supposed to. If not configured to use discovery, return null