Package org.apache.ofbiz.webapp.event
Class JSONRequestBodyMapHandler
java.lang.Object
org.apache.ofbiz.webapp.event.JSONRequestBodyMapHandler
- All Implemented Interfaces:
RequestBodyMapHandler
An implementation of
RequestBodyMapHandler
that can extract a Map<String, Object>
from the JSON data in the request body-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionextractMapFromRequestBody
(ServletRequest request) Extracts from the data in the body of theServletRequest
an instance ofMap<String, Object>
.
-
Constructor Details
-
JSONRequestBodyMapHandler
public JSONRequestBodyMapHandler()
-
-
Method Details
-
extractMapFromRequestBody
Description copied from interface:RequestBodyMapHandler
Extracts from the data in the body of theServletRequest
an instance ofMap<String, Object>
.- Specified by:
extractMapFromRequestBody
in interfaceRequestBodyMapHandler
- Parameters:
request
- the request with the data in its body- Returns:
- an instance of
Map<String, Object>
that represents the data in the request body - Throws:
IOException
-