| java.lang.Object com.nabhinc.ws.core.WebServiceUtil
WebServiceUtil | public class WebServiceUtil (Code) | | Class providing static utility methods for Web services framework.
author: Padmanabh Dabke author: (c) 2005 Nabh Information Systems, Inc. All Rights Reserved. |
Method Summary | |
public static PropertyInfo[] | constructPropertiesInfo(HttpServletRequest req) | public static PropertyInfo[] | deserializePropertiesInfo(Element config) Looks for <init-param> child elements and creates a PropertyInfo
object for each such element. | public static Object | evaluateCOILExpression(String propValueStr) | public static void | serializeBaseObject(BaseObject obj, String name, String tag, PropertyInfo[] props, String indent, String delta, Writer w) | public static void | serializePropertiesInfo(PropertyInfo[] propertiesInfo, String indent, String delta, Writer w) Serializes PropertyInfo objects as XML. | public static void | setObjectProperty(Object target, String name, Object value, boolean strict) Attempts to look up a field or a "setXXX" method on the target object and
use it to set specified property. | public static void | setProperty(Object target, PropertyInfo propInfo, boolean strict) | public static void | setProperty(Object target, String name, String value, boolean strict) Attempts to look up a field or a "setXXX" method on the target object and
use it to set specified property. |
PROPERTY_DESCR_PARAM_PREFIX | final public static String PROPERTY_DESCR_PARAM_PREFIX(Code) | | |
PROPERTY_IS_MEMO_PARAM_PREFIX | final public static String PROPERTY_IS_MEMO_PARAM_PREFIX(Code) | | |
PROPERTY_NAME_PARAM_PREFIX | final public static String PROPERTY_NAME_PARAM_PREFIX(Code) | | |
PROPERTY_PROMPT_PARAM_PREFIX | final public static String PROPERTY_PROMPT_PARAM_PREFIX(Code) | | |
PROPERTY_SPEC_TYPE_PARAM_PREFIX | final public static String PROPERTY_SPEC_TYPE_PARAM_PREFIX(Code) | | |
PROPERTY_VALUE_PARAM_PREFIX | final public static String PROPERTY_VALUE_PARAM_PREFIX(Code) | | |
deserializePropertiesInfo | public static PropertyInfo[] deserializePropertiesInfo(Element config)(Code) | | Looks for <init-param> child elements and creates a PropertyInfo
object for each such element.
Parameters: config - XML property info configuration Array of PropertyInfo objects created based on the configuration. |
evaluateCOILExpression | public static Object evaluateCOILExpression(String propValueStr) throws ParseException, EvaluationException(Code) | | |
serializePropertiesInfo | public static void serializePropertiesInfo(PropertyInfo[] propertiesInfo, String indent, String delta, Writer w) throws IOException(Code) | | Serializes PropertyInfo objects as XML. Each object is written
as a <init-param> element.
Parameters: propertiesInfo - PropertyInfo objects to be serialized Parameters: indent - Starting indent for XML formatting Parameters: delta - Delta added to the indent when going to the next level in XML formatting Parameters: w - Writer used for writing out the serialized information. throws: IOException - |
setObjectProperty | public static void setObjectProperty(Object target, String name, Object value, boolean strict) throws WebServiceException(Code) | | Attempts to look up a field or a "setXXX" method on the target object and
use it to set specified property. The value is specified as a String. This
is converted to an object of the appropriate class based on the field type.
Currently this method does not handle array or non-primitive properties.
|
setProperty | public static void setProperty(Object target, String name, String value, boolean strict) throws WebServiceException(Code) | | Attempts to look up a field or a "setXXX" method on the target object and
use it to set specified property. If the "strict" flag is true and
this method fails to match property name with a field/method, it throws
IllegalArgumentException . The value
is converted to an object of the appropriate class based on the field type.
Currently this method does not handle array or non-primitive properties.
Parameters: target - Target object Parameters: Property - name Parameters: String - specifying property value Parameters: strict - If true and a matching field/method is not found, this methodthrows IllegalAccessException. |
|
|