Class FormUrlEncodedDecoder

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

    public class FormUrlEncodedDecoder
    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 'application/x-www-form-urlencoded'
    Author:
    javaito
    • Constructor Detail

      • FormUrlEncodedDecoder

        public FormUrlEncodedDecoder()
    • Method Detail

      • decode

        public java.util.Map<java.lang.String,​java.lang.Object> decode​(HttpRequest request)
        Decodes the request body that must be encoding with url encoding method.
        Specified by:
        decode in interface RequestBodyDecoderLayer
        Parameters:
        request - Http request instance.
        Returns:
        Returns the map with all the decoded parameters.