Class ManualClientSettings

java.lang.Object
edu.internet2.middleware.grouper.webservicesClient.util.ManualClientSettings

public class ManualClientSettings extends Object
generated client settings
  • Field Details

    • VERSION

      public static String VERSION
      client version. keep this updated as the version changes
    • USER

      public static String USER
      user to login as
    • PASS

      public static String PASS
      user to login as
    • HOST

      public static String HOST
      user to login as
    • PORT

      public static int PORT
      user to login as
    • URL

      public static String URL
      url prefix before the service part with no slash: e.g. http://localhost:8093/grouper-ws
  • Constructor Details

    • ManualClientSettings

      public ManualClientSettings()
  • Method Details

    • nonNull

      public static <T> T[] nonNull(T[] array)
      make sure a array is non null. If null, then return an empty array. Note: this will probably not work for primitive arrays (e.g. int[])
      Type Parameters:
      T -
      Parameters:
      array -
      Returns:
      the list or empty list if null
    • fileFromResourceName

      public static File fileFromResourceName(String resourceName)
      get a file name from a resource name
      Parameters:
      resourceName - is the classpath location
      Returns:
      the file path on the system
    • computeUrl

      public static URL computeUrl(String resourceName, boolean canBeNull)
      compute a url of a resource
      Parameters:
      resourceName -
      canBeNull - if cant be null, throw runtime
      Returns:
      the URL
    • classLoader

      public static ClassLoader classLoader()
      fast class loader
      Returns:
      the class loader