Package org.apache.ofbiz.webapp.event
Class JSONRequestBodyMapHandler
- java.lang.Object
-
- org.apache.ofbiz.webapp.event.JSONRequestBodyMapHandler
-
- All Implemented Interfaces:
RequestBodyMapHandler
public class JSONRequestBodyMapHandler extends java.lang.Object implements RequestBodyMapHandler
An implementation ofRequestBodyMapHandler
that can extract aMap<String, Object>
from the JSON data in the request body
-
-
Constructor Summary
Constructors Constructor Description JSONRequestBodyMapHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
extractMapFromRequestBody(javax.servlet.ServletRequest request)
Extracts from the data in the body of theServletRequest
an instance ofMap<String, Object>
.
-
-
-
Method Detail
-
extractMapFromRequestBody
public java.util.Map<java.lang.String,java.lang.Object> extractMapFromRequestBody(javax.servlet.ServletRequest request) throws java.io.IOException
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:
java.io.IOException
-
-