public class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static I18NBundle |
getCommonI18NBundle()
gives the I18N bundle
|
static String |
getHostName(String aHostName)
This method will return the return the host address information for the given
host name in the format of
|
static boolean |
isLocalHost(String host)
This method checks that the host name is a localhost or a remote host.
|
static void |
logDebug(Exception ex)
logs the message
|
static void |
logDebug(Logger logger,
Exception ex)
logs the message
|
static void |
logDebug(String msg)
prints the string to debug output
|
static Object |
newInstance(String type,
String arg)
This method creates a new object of specified type using the reflection apis.
|
public static I18NBundle getCommonI18NBundle()
public static void logDebug(String msg)
msg - text to printpublic static void logDebug(Logger logger, Exception ex)
logger - loggerex - exceptionpublic static void logDebug(Exception ex)
ex - exceptionpublic static Object newInstance(String type, String arg) throws ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException, IllegalArgumentException
type - the fully qualified name of the desired classarg - String value to be passed to the class constructorClassNotFoundException - on errorNoSuchMethodException - on errorInstantiationException - on errorIllegalAccessException - on errorInvocationTargetException - on errorIllegalArgumentException - on errorpublic static boolean isLocalHost(String host) throws UnknownHostException
host - host name to check for local or remote host.UnknownHostException - on errror.public static String getHostName(String aHostName) throws UnknownHostException
host - the name of the host (ip address string or name of host).UnknownHostException - on error.Copyright © 2011-2016 OpenESB Community. All Rights Reserved.