Class DiscoveryClient
java.lang.Object
edu.internet2.middleware.grouperClient.discovery.DiscoveryClient
This client will manage discovery, cache results, etc
TODO add checksum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
see if we are configured for discoverystatic void
static File
retrieveFile
(String fileName, boolean throwExceptionIfNotFound) retrieve a file from the discovery server
-
Constructor Details
-
DiscoveryClient
public DiscoveryClient()
-
-
Method Details
-
main
- Parameters:
args
-
-
hasDiscovery
public static boolean hasDiscovery()see if we are configured for discovery- Returns:
- if we are using discovery
-
retrieveFile
retrieve a file from the discovery server- Parameters:
fileName
- file name on the serverthrowExceptionIfNotFound
- 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
-