RqForm.Base, RqForm.Smart
Constructor and Description |
---|
RqForm.Smart(RqForm req)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
body()
HTTP request 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 RqForm.Smart(RqForm req)
req
- Original requestpublic Iterable<String> param(CharSequence name)
RqForm
public Iterable<String> names()
RqForm
public Iterable<String> head() throws IOException
Request
head
in interface Request
IOException
- If something goes wrongpublic InputStream body() throws IOException
Request
body
in interface Request
IOException
- If something goes wrongpublic String single(CharSequence name) throws IOException
name
- Name of query paramIOException
- If failspublic String single(CharSequence name, String def)
name
- Name of query paramdef
- Default, if not foundCopyright © 2015 Take. All rights reserved.