Interface RequestReader

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method 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()  
    • Method Detail

      • 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 request
        jsonHelper - Jackson Helper
        requiredType - 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 request
        jsonHelper - Jackson Helper
        requiredType - 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()