public static final class RqMultipart.Fake extends Object implements RqMultipart
RqMultipart.Base, RqMultipart.Fake, RqMultipart.Smart
Constructor and Description |
---|
RqMultipart.Fake(Request req,
Request... dispositions)
Fake ctor.
|
public RqMultipart.Fake(Request req, Request... dispositions) throws IOException
req
- Fake request header holderdispositions
- Fake request body partsIOException
- If failspublic Iterable<Request> part(CharSequence name)
RqMultipart
part
in interface RqMultipart
name
- Name of the part to getpublic Iterable<String> names()
RqMultipart
names
in interface RqMultipart
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 wrongCopyright © 2015 Take. All rights reserved.