|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.securevault.commons.MiscellaneousUtil
public class MiscellaneousUtil
TODO - This is a copy of class in synapse commons
| Method Summary | ||
|---|---|---|
static byte[] |
asBytes(InputStream in)
|
|
static String |
getProperty(Properties properties,
String name,
String defaultValue)
Helper method to get the value of the property from a given property bag |
|
static
|
getProperty(Properties properties,
String name,
T defaultValue,
Class<? extends T> type)
Helper method to get the value of the property from a given property bag This method will return a value with the type equal to the type given by the Class type parameter. |
|
static Properties |
loadProperties(String filePath)
Loads the properties from a given property file path |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String getProperty(Properties properties,
String name,
String defaultValue)
properties - The property collectionname - The name of the propertydefaultValue - The default value for the property
public static <T> T getProperty(Properties properties,
String name,
T defaultValue,
Class<? extends T> type)
properties - Properties bagname - Name of the propertydefaultValue - Default valuetype - Expected Type using Class
public static Properties loadProperties(String filePath)
filePath - Path of the property file
public static byte[] asBytes(InputStream in)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||