public final class RsVelocity extends Object implements Response
The class is immutable and thread-safe.
Constructor and Description |
---|
RsVelocity(InputStream tpl)
Ctor.
|
RsVelocity(InputStream tpl,
Map<String,Object> map)
Ctor.
|
RsVelocity(String tpl)
Ctor.
|
RsVelocity(URL tpl)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
body()
HTTP response body.
|
List<String> |
head()
HTTP response head.
|
RsVelocity |
with(String key,
Object value)
With this parameter.
|
public RsVelocity(String tpl)
tpl
- Templatepublic RsVelocity(URL tpl) throws IOException
tpl
- TemplateIOException
- If failspublic RsVelocity(InputStream tpl)
tpl
- Templatepublic RsVelocity(InputStream tpl, Map<String,Object> map)
tpl
- Templatemap
- Map of paramspublic RsVelocity with(String key, Object value)
key
- Keyvalue
- Valuepublic InputStream body() throws IOException
Response
body
in interface Response
IOException
- If something goes wrongCopyright © 2015 Takes. All rights reserved.