RqHref.Base, RqHref.Smart
Constructor and Description |
---|
Smart(Request req)
Ctor.
|
Smart(RqHref req)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
body()
Body.
|
Iterable<String> |
head()
All lines above the body.
|
Href |
home()
Get self.
|
Href |
href()
Get HREF.
|
String |
single(CharSequence name)
Get param or throw HTTP exception.
|
String |
single(CharSequence name,
CharSequence def)
Get param or default.
|
public Smart(Request req)
req
- Original requestpublic Smart(RqHref req)
req
- Original requestpublic Href href() throws IOException
RqHref
href
in interface RqHref
IOException
- If failspublic Iterable<String> head() throws IOException
Head
head
in interface Head
IOException
- If something goes wrongpublic InputStream body() throws IOException
Body
body
in interface Body
IOException
- If something goes wrongpublic Href home() throws IOException
IOException
- If failspublic String single(CharSequence name) throws IOException
name
- Name of query paramIOException
- If failspublic String single(CharSequence name, CharSequence def) throws IOException
name
- Name of query paramdef
- Default, if not foundIOException
- If failsCopyright © 2015–2019 Take. All rights reserved.