edu.internet2.middleware.grouperClient.discovery
Class DiscoveryClient

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

public class DiscoveryClient
extends java.lang.Object

This client will manage discovery, cache results, etc TODO add checksum

Author:
mchyzer

Constructor Summary
DiscoveryClient()
           
 
Method Summary
static boolean hasDiscovery()
          see if we are configured for discovery
static void main(java.lang.String[] args)
           
static java.io.File retrieveFile(java.lang.String fileName, boolean throwExceptionIfNotFound)
          retrieve a file from the discovery server
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoveryClient

public DiscoveryClient()
Method Detail

main

public static void main(java.lang.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 java.io.File retrieveFile(java.lang.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