Interface RequestReader
- All Known Implementing Classes:
ResourceWebScriptPost,ResourceWebScriptPut,SearchApiWebscript,SearchSQLApiWebscript
public interface RequestReader
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> TextractJsonContent(org.springframework.extensions.webscripts.WebScriptRequest req, JacksonHelper jsonHelper, Class<T> requiredType) Extracts the body contents from the requestdefault <T> List<T>extractJsonContentAsList(org.springframework.extensions.webscripts.WebScriptRequest req, JacksonHelper jsonHelper, Class<T> requiredType) Extracts the body contents from the request as a List, the JSON can be an array or just a single value without the [] symbolsdefault org.apache.commons.logging.LogrrLogger()
-
Method Details
-
extractJsonContent
default <T> T extractJsonContent(org.springframework.extensions.webscripts.WebScriptRequest req, JacksonHelper jsonHelper, Class<T> requiredType) Extracts the body contents from the request- Parameters:
req- the requestjsonHelper- Jackson HelperrequiredType- the type to return- Returns:
- the Object in the required type
-
extractJsonContentAsList
default <T> List<T> extractJsonContentAsList(org.springframework.extensions.webscripts.WebScriptRequest req, JacksonHelper jsonHelper, Class<T> requiredType) Extracts the body contents from the request as a List, the JSON can be an array or just a single value without the [] symbols- Parameters:
req- the requestjsonHelper- Jackson HelperrequiredType- the type to return (without the List param)- Returns:
- A List of "Object" as the required type
-
rrLogger
default org.apache.commons.logging.Log rrLogger()
-