Constructor and Description |
---|
RqFormSmart(Request req)
Ctor.
|
RqFormSmart(RqForm req)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
body()
Body.
|
Iterable<String> |
head()
All lines above the body.
|
Iterable<String> |
names()
Get all parameter names.
|
Iterable<String> |
param(CharSequence name)
Get single parameter.
|
String |
single(CharSequence name)
Get single param or throw HTTP exception.
|
String |
single(CharSequence name,
String def)
Get single param or default.
|
public RqFormSmart(Request req)
req
- Original requestpublic RqFormSmart(RqForm req)
req
- Original requestpublic Iterable<String> param(CharSequence name) throws IOException
RqForm
param
in interface RqForm
name
- Parameter nameIOException
- if something fails reading parameterspublic Iterable<String> names() throws IOException
RqForm
names
in interface RqForm
IOException
- if something fails reading parameterspublic Iterable<String> head() throws IOException
Head
head
in interface Head
IOException
- If something goes wrongpublic InputStream body() throws IOException
Body
body
in interface Body
IOException
- If something goes wrongpublic String single(CharSequence name) throws IOException
name
- Name of query paramIOException
- If failspublic String single(CharSequence name, String def) throws IOException
name
- Name of query paramdef
- Default, if not foundIOException
- if something fails reading parametersCopyright © 2015–2019 Take. All rights reserved.