Class RequestParamMap

  • All Implemented Interfaces:
    com.helger.commons.lang.IHasSize, IRequestParamMap

    @NotThreadSafe
    public class RequestParamMap
    extends Object
    implements IRequestParamMap
    This class represents a nested map that is build from request parameters. E.g. the parameter struct[key]=value results in a map{struct=map{key=value}}.
    If another parameter struct[key2]=value2 is added the resulting map looks like this: map{struct=map{key=value, key2=value2}}. Theses maps can indefinitely be nested.
    Having only struct[key1][key2][key3]=value results in map{struct=map{key1=map{key2=map{key3=value}}}}

    By default the separator chars are "[" and "]" but since this may be a problem with JS expressions, setSeparators(char, char) and setSeparators(String, String) offer the possibility to set different separator separators that are not special.
    Author:
    Philip Helger