edu.internet2.middleware.grouperClient.discovery
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
- Author:
- mchyzer
Method Summary |
static boolean |
hasDiscovery()
see if we are configured for discovery |
static void |
main(String[] args)
|
static File |
retrieveFile(String fileName,
boolean throwExceptionIfNotFound)
retrieve a file from the discovery server |
DiscoveryClient
public DiscoveryClient()
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 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