Package org.takes.rq
Class RqWrap
- java.lang.Object
-
- org.takes.rq.RqWrap
-
- Direct Known Subclasses:
RqAuth
,RqBuffered
,RqChunk
,RqCookies.Base
,RqEmpty
,RqFake
,RqFormBase
,RqGreedy
,RqHeaders.Base
,RqHref.Base
,RqLengthAware
,RqLive
,RqMethod.Base
,RqOnce
,RqPrint
,RqRequestLine.Base
,RqSimple
,RqSocket
,RqWithAuth
,RqWithBody
,RqWithDefaultHeader
,RqWithHeader
,RqWithHeaders
,RqWithoutHeader
public class RqWrap extends Object implements Request
Request wrap.The class is immutable and thread-safe.
- Since:
- 0.6
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
body()
Body.Iterable<String>
head()
All lines above the body.
-
-
-
Constructor Detail
-
RqWrap
public RqWrap(Request req)
Ctor.- Parameters:
req
- Original request
-
-
Method Detail
-
head
public final Iterable<String> head() throws IOException
Description copied from interface:Head
All lines above the body.- Specified by:
head
in interfaceHead
- Returns:
- List of lines
- Throws:
IOException
- If something goes wrong
-
body
public final InputStream body() throws IOException
Description copied from interface:Body
Body.- Specified by:
body
in interfaceBody
- Returns:
- Stream with body
- Throws:
IOException
- If something goes wrong
-
-