Class JSONRequestBodyMapHandler

  • All Implemented Interfaces:
    RequestBodyMapHandler

    public class JSONRequestBodyMapHandler
    extends java.lang.Object
    implements RequestBodyMapHandler
    An implementation of RequestBodyMapHandler that can extract a Map<String, Object> from the JSON data in the request body
    • 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 the ServletRequest an instance of Map<String, Object>.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JSONRequestBodyMapHandler

        public JSONRequestBodyMapHandler()
    • 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 the ServletRequest an instance of Map<String, Object>.
        Specified by:
        extractMapFromRequestBody in interface RequestBodyMapHandler
        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