java.lang.Object
dev.katsute.simplehttpserver.Record
- Direct Known Subclasses:
FileRecord
Represents a record in a multipart/form-data request.
- Since:
- 5.0.0
- Version:
- 5.0.0
- Author:
- Katsute
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a header in a multipart/form-data record. -
Method Summary
Modifier and TypeMethodDescriptionfinal FileRecordasFile()Casts the record to aFileRecord.final Record.HeaderReturns a specified header.final Map<String, Record.Header> Returns all the headers.final StringgetName()Returns the form input name.final StringgetValue()Returns the form value.final booleanisFile()Returns if the record is aFileRecord.toString()
-
Method Details
-
getName
Returns the form input name.- Returns:
- form input name
- Since:
- 5.0.0
-
getValue
Returns the form value.- Returns:
- form value
- Since:
- 5.0.0
-
getHeader
Returns a specified header.- Parameters:
key- header key- Returns:
- header
- Since:
- 5.0.0
- See Also:
-
getHeaders
Returns all the headers.- Returns:
- headers
- Since:
- 5.0.0
- See Also:
-
isFile
public final boolean isFile()Returns if the record is aFileRecord.- Returns:
- if record is a file record
- Since:
- 5.0.0
- See Also:
-
asFile
Casts the record to aFileRecord.- Returns:
- record as a file record
- Since:
- 5.0.0
- See Also:
-
toString
-