- java.lang.Object
-
- com.kttdevelopment.simplehttpserver.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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecordgetRecord(String key)Returns the record for key or null if none is found.Map<String,Record>getRecords()Returns all the records in the multipart/form-data;StringtoString()
-
-
-
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 toFileRecord.- Parameters:
key- record key- Returns:
RecordorFileRecordor 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
-
-