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
Modifier and TypeClassDescriptionstatic class
Represents a header in a multipart/form-data record. -
Method Summary
Modifier and TypeMethodDescriptionfinal FileRecord
asFile()
Casts the record to aFileRecord
.final Record.Header
Returns a specified header.final Map
<String, Record.Header> Returns all the headers.final String
getName()
Returns the form input name.final String
getValue()
Returns the form value.final boolean
isFile()
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
-