Class MultipartFormData


  • public class MultipartFormData
    extends Object
    This class represents a POST request map as a multipart/form-data.
    Since:
    4.0.0
    Version:
    4.0.0
    Author:
    Ktt Development
    See Also:
    SimpleHttpExchange, Record, FileRecord
    • Method Detail

      • getRecord

        public final Record getRecord​(String key)
        Returns the record for key or null if none is found. If the record is supposed to be a FileRecord then cast it to FileRecord.
        Parameters:
        key - record key
        Returns:
        Record or FileRecord or null if none is found.
        Since:
        4.0.0
        See Also:
        Record, FileRecord
      • getRecords

        public final Map<String,​Record> getRecords()
        Returns all the records in the multipart/form-data;
        Returns:
        map of all records
        Since:
        4.0.0
        See Also:
        Record, FileRecord