Package org.takes.rq
Interface RqForm
-
- All Known Implementing Classes:
RqFormBase
,RqFormFake
,RqFormSmart
public interface RqForm extends Request
Request decorator that decodes FORM data fromapplication/x-www-form-urlencoded
format (RFC 1738).For
multipart/form-data
format useRqMtBase
.It is highly recommended to use
RqGreedy
decorator before passing request to this class.The class is immutable and thread-safe.
- Since:
- 0.9
- See Also:
-
Forms in HTML,
RqGreedy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterable<String>
names()
Get all parameter names.Iterable<String>
param(CharSequence name)
Get single parameter.
-
-
-
Method Detail
-
param
Iterable<String> param(CharSequence name) throws IOException
Get single parameter.- Parameters:
name
- Parameter name- Returns:
- List of values (can be empty)
- Throws:
IOException
- if something fails reading parameters
-
names
Iterable<String> names() throws IOException
Get all parameter names.- Returns:
- All names
- Throws:
IOException
- if something fails reading parameters
-
-