Package org.frankframework.console.util
Class RequestUtils
java.lang.Object
org.frankframework.console.util.RequestUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static <T> T
convert
(Class<T> clazz, InputStream is) static Boolean
getBooleanValue
(Map<String, Object> json, String key) static Integer
getIntegerValue
(Map<String, Object> json, String key) static String
If present returns the value as String Else returns NULLstatic <T> T
resolveRequiredProperty
(String key, T multiFormProperty, T defaultValue) static String
resolveStringWithEncoding
(String key, org.springframework.web.multipart.MultipartFile message, String defaultEncoding, boolean nullOnEmpty)
-
Constructor Details
-
RequestUtils
public RequestUtils()
-
-
Method Details
-
convert
- Throws:
IOException
-
getValue
If present returns the value as String Else returns NULL -
getIntegerValue
-
getBooleanValue
-
resolveRequiredProperty
@Nonnull public static <T> T resolveRequiredProperty(String key, T multiFormProperty, T defaultValue) throws ApiException - Throws:
ApiException
-
resolveStringWithEncoding
-