Class RequestParameters

    • Constructor Detail

      • RequestParameters

        public RequestParameters()
        Default constructor.
    • Method Detail

      • getString

        public String getString​(String key)
        Gets the named item as a string.
        Parameters:
        key - The parameter name.
        Returns:
        The item as a String.
      • getStrings

        public String[] getStrings​(String key)
        Gets all parameters with the given name.
        Parameters:
        key - The parameter name.
        Returns:
        All parameter String values, or an empty array if there are none.
      • getFile

        public File getFile​(String key)
        Gets the named item as a list of files.
        Parameters:
        key - The parameter name.
        Returns:
        A list of FileItems.
      • getFiles

        public Vector<File> getFiles​(String key)
        Gets the named item as a list of files.
        Parameters:
        key - The parameter name.
        Returns:
        A list of FileItems, which may be empty.
      • getAllFiles

        public List<File> getAllFiles()
        Obtains all files in the parameters.
        Returns:
        All the files uploaded with the parameters.
      • close

        public void close()
        Deletes all temporary files that were created while reading file parameters.
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable