public static final class RsWithType.JSON extends RsWrap
The class is immutable and thread-safe.
Constructor and Description |
---|
RsWithType.JSON(Response res)
Constructs a
JSON that will add application/json as the
content type header to the response. |
RsWithType.JSON(Response res,
Charset charset)
Constructs a
JSON that will add application/json as the
content type header to the response using the specified charset as
charset parameter value. |
public RsWithType.JSON(Response res)
JSON
that will add application/json as the
content type header to the response.res
- Original responsepublic RsWithType.JSON(Response res, Charset charset)
JSON
that will add application/json as the
content type header to the response using the specified charset as
charset parameter value.res
- Original responsecharset
- The character set to add in the content type headerCopyright © 2015–2016 Take. All rights reserved.