public interface RequestReader
Modifier and Type | Method and Description |
---|---|
default <T> T |
extractJsonContent(org.springframework.extensions.webscripts.WebScriptRequest req,
JacksonHelper jsonHelper,
Class<T> requiredType)
Extracts the body contents from the request
|
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
|
default org.apache.commons.logging.Log |
rrLogger() |
default <T> T extractJsonContent(org.springframework.extensions.webscripts.WebScriptRequest req, JacksonHelper jsonHelper, Class<T> requiredType)
req
- the requestjsonHelper
- Jackson HelperrequiredType
- the type to returndefault <T> List<T> extractJsonContentAsList(org.springframework.extensions.webscripts.WebScriptRequest req, JacksonHelper jsonHelper, Class<T> requiredType)
req
- the requestjsonHelper
- Jackson HelperrequiredType
- the type to return (without the List param)default org.apache.commons.logging.Log rrLogger()
Copyright © 2005–2017 Alfresco Software. All rights reserved.