Interface HttpRequestBodyConverter

    • Method Detail

      • convert

        <T> T convert​(HttpServletRequest request,
                      java.lang.Class<T> type)
        Converts the body of this request. If this implementation cannot handle this request, probably by not handling its content type, it should return null. In addition, if the request body is empty, this method should also return null.
        Parameters:
        request - an HttpServletRequest.
        type - the target type.
        Returns:
        an object of the target type or null.