Class GeneratedClientSettings
java.lang.Object
edu.internet2.middleware.grouper.webservicesClient.util.GeneratedClientSettings
generated client settings
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassLoader
fast class loaderstatic URL
computeUrl
(String resourceName, boolean canBeNull) compute a url of a resourcestatic File
fileFromResourceName
(String resourceName) get a file name from a resource namestatic <T> T[]
nonNull
(T[] array) make sure a array is non null.
-
Field Details
-
VERSION
client version. keep this updated as the version changes -
USER
user to login as -
PASS
user to login as -
URL
url prefix
-
-
Constructor Details
-
GeneratedClientSettings
public GeneratedClientSettings()
-
-
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
get a file name from a resource name- Parameters:
resourceName
- is the classpath location- Returns:
- the file path on the system
-
computeUrl
compute a url of a resource- Parameters:
resourceName
-canBeNull
- if cant be null, throw runtime- Returns:
- the URL
-
classLoader
fast class loader- Returns:
- the class loader
-