public final class RqFormFake extends Object implements RqForm
Constructor and Description |
---|
RqFormFake(Request req,
String... params)
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.
|
public 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
Request
head
in interface Request
IOException
- If something goes wrongpublic InputStream body() throws IOException
Request
body
in interface Request
IOException
- If something goes wrongCopyright © 2015–2018 Take. All rights reserved.