Package org.takes.rq.form
Class RqFormBase
- java.lang.Object
-
- org.takes.rq.RqWrap
-
- org.takes.rq.form.RqFormBase
-
-
Constructor Summary
Constructors Constructor Description RqFormBase(Request request)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<String>
names()
Get all parameter names.Iterable<String>
param(CharSequence key)
Get single parameter.
-
-
-
Constructor Detail
-
RqFormBase
public RqFormBase(Request request)
Ctor.- Parameters:
request
- Original request
-
-
Method Detail
-
param
public Iterable<String> param(CharSequence key) throws IOException
Description copied from interface:RqForm
Get single parameter.- Specified by:
param
in interfaceRqForm
- Parameters:
key
- Parameter name- Returns:
- List of values (can be empty)
- Throws:
IOException
- if something fails reading parameters
-
names
public Iterable<String> names() throws IOException
Description copied from interface:RqForm
Get all parameter names.- Specified by:
names
in interfaceRqForm
- Returns:
- All names
- Throws:
IOException
- if something fails reading parameters
-
-