Class MultipartFormDataDecoder

  • All Implemented Interfaces:
    java.lang.reflect.InvocationHandler, RequestBodyDecoderLayer, LayerInterface

    public class MultipartFormDataDecoder
    extends Layer
    implements RequestBodyDecoderLayer
    This layer implementation contains the logic to decode a body using the form url encoding standard method, that correspond with the content type header 'multipart/form-data'
    Author:
    javaito
    • Constructor Detail

      • MultipartFormDataDecoder

        public MultipartFormDataDecoder()
    • Method Detail

      • decode

        public java.util.Map<java.lang.String,​java.lang.Object> decode​(HttpRequest request)
        Description copied from interface: RequestBodyDecoderLayer
        Returns a map with the parameters parsed from the request body.
        Specified by:
        decode in interface RequestBodyDecoderLayer
        Parameters:
        request - Http request instance.
        Returns:
        Map with all the parameters.