public final class RsWithBody extends RsWrap
This implementation of the Response
interface requires that
the Response.head()
method has to be invoked before reading
from the InputStream
obtained from the Response.body()
method.
The class is immutable and thread-safe.
Constructor and Description |
---|
RsWithBody(byte[] body)
Ctor.
|
RsWithBody(CharSequence body)
Ctor.
|
RsWithBody(InputStream body)
Ctor.
|
RsWithBody(Response res,
byte[] body)
Ctor.
|
RsWithBody(Response res,
CharSequence body)
Ctor.
|
RsWithBody(Response res,
InputStream body)
Ctor.
|
RsWithBody(Response res,
URL url)
Ctor.
|
RsWithBody(URL url)
Ctor.
|
public RsWithBody(CharSequence body)
body
- Bodypublic RsWithBody(byte[] body)
body
- Bodypublic RsWithBody(InputStream body)
body
- Bodypublic RsWithBody(URL url)
url
- URL with bodypublic RsWithBody(Response res, CharSequence body)
res
- Original responsebody
- Bodypublic RsWithBody(Response res, URL url)
res
- Original responseurl
- URL with bodypublic RsWithBody(Response res, byte[] body)
res
- Original responsebody
- Bodypublic RsWithBody(Response res, InputStream body)
res
- Original responsebody
- BodyCopyright © 2015 Take. All rights reserved.