public final class RsWithType extends RsWrap
The class is immutable and thread-safe.
Modifier and Type | Class and Description |
---|---|
static class |
RsWithType.HTML
Response decorator, with content type text/html.
|
static class |
RsWithType.JSON
Response decorator, with content type application/json.
|
static class |
RsWithType.Text
Response decorator, with content type text/plain.
|
static class |
RsWithType.XML
Response decorator, with content type text/xml.
|
Constructor and Description |
---|
RsWithType(Response res,
CharSequence type)
Ctor.
|
public RsWithType(Response res, CharSequence type)
res
- Original responsetype
- Content typeCopyright © 2015–2016 Take. All rights reserved.