public final class RsNegotiation extends Object implements Response
Constructor and Description |
---|
RsNegotiation(Map<Collection<String>,Response> map,
Request req)
Ctor.
|
RsNegotiation(Request req)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
body()
HTTP response body.
|
List<String> |
head()
HTTP response head.
|
RsNegotiation |
with(String types,
Response res)
With this type and response.
|
public RsNegotiation(Request req)
req
- Requestpublic RsNegotiation(Map<Collection<String>,Response> map, Request req)
map
- Map of responsesreq
- Requestpublic RsNegotiation with(String types, Response res)
types
- Typesres
- Responsepublic List<String> head() throws IOException
Response
head
in interface Response
IOException
- If something goes wrongpublic InputStream body() throws IOException
Response
body
in interface Response
IOException
- If something goes wrongCopyright © 2015 Takes. All rights reserved.